Readit News logoReadit News
robdelacruz commented on Show HN: A simple and powerful RSS reader for the web    · Posted by u/g3eorge
robdelacruz · a year ago
Check out my FreeRSS web-based portal I made a while back. Inspired by the defunct iGoogle.

https://github.com/robdelacruz/freerss

https://freerss.robdelacruz.xyz/

Unfortunately, it needs to be revamped or recreated from scratch because I can no longer recompile it due to the changes in SvelteJS.

robdelacruz commented on Please, expose your RSS   rknight.me/please-expose-... · Posted by u/rknightuk
robdelacruz · 2 years ago
Check out FreeRSS, it's an iGoogle clone, just Add Widget, paste in the url of the website, and it auto-detects any RSS feeds in the site.

https://freerss.robdelacruz.xyz/

robdelacruz commented on     · Posted by u/robdelacruz
robdelacruz · 2 years ago
"I am writing this by hand from a federal prison.

It is a surreal experience, to say the least. When I arrived, I was stripped naked. They took my clothes, and then gave me what amounted to rags: an old brown, oversized t-shirt, loose torn brown pants, "cloth tubes" that don't fit you feet but are meant to be socks, and some flat, poorly fitting shoes. I was then directed to a bunk bed in a room with 6 others and given a blanket. I would have to wait until after the weekend to get my "uniform" and a pillow, and to buy necessities from the commissary..."

robdelacruz commented on Show HN: A little web server in C   github.com/robdelacruz/lk... · Posted by u/robdelacruz
csdvrx · 2 years ago
> Until you put fingers to keyboard, you just don't know, it's all book learnin'.

This!

Also writing a HTTP server seems like a hacker rite of passage, like creating your own lightsaber for a Jedi.

So last Christmas, I did just that :)

Personally, I like retrocomputing so I did mine in perl. I learned a lot of things, and I added a few "modern features" as extras like mDNS and cosmopolitan, because it's more fun to use something.local that 127.0.0.1)

It's on https://github.com/csdvrx/PerlPleBean and if you want to dig into mDNS, check the Bonjour part on https://github.com/csdvrx/PerlPleBean/blob/main/experiments/...

It's very fun to be able to launch just one executable and then curl whatever.local

robdelacruz · 2 years ago
Love your project and enjoyed reading your extended README file. Perl and retrocomputing gives me a warm feeling inside.
robdelacruz commented on Show HN: A little web server in C   github.com/robdelacruz/lk... · Posted by u/robdelacruz
stevefan1999 · 2 years ago
I hate to say it, old man, we have Rust today and we can do things as efficient and as performant as you while being safer overall.

We have tokio to handle all the IO stuff, we have hyper to handle HTTP parsing, and we even have tungstenite to handle websocket out of the box. While I appreciate your work but it will not be practical to write C anymore in the modern age. Well, unless you need to target something LLVM isn't there yet and maybe you need some weird GCC toolchain (cough cough AVR)

robdelacruz · 2 years ago
Confession: I write in C because it's fun and feels like you can do anything in it. Agree it's probably not the most practical or commercial-friendly solution. I like C!
robdelacruz commented on Show HN: A little web server in C   github.com/robdelacruz/lk... · Posted by u/robdelacruz
amadvance · 2 years ago
Take care that select() is not good for a webserver. From manpage:

       WARNING: select() can monitor only file descriptors numbers that
       are less than FD_SETSIZE (1024)—an unreasonably low limit for
       many modern applications—and this limitation will not change.
       All modern applications should instead use poll(2) or epoll(7),
       which do not suffer this limitation.

robdelacruz · 2 years ago
Thanks for this. Saw the bug you logged on github too. Agree that poll() should be used instead to avoid the FD_SETSIZE limitation. Maybe in the future when littlekitten webserver grows to be a big cat...
robdelacruz commented on Show HN: A little web server in C   github.com/robdelacruz/lk... · Posted by u/robdelacruz
dajtxx · 2 years ago
I know it's not your code, but related to this comment, it looks like it missing a check for lks == null?

https://github.com/robdelacruz/lkwebserver/blob/main/lkstrin...

robdelacruz · 2 years ago
Thanks, much of the asserts were scaffolding while I was programming the helper functions. They function similar to comments, reminding me of the internal conditions that should always be valid.
robdelacruz commented on Show HN: A little web server in C   github.com/robdelacruz/lk... · Posted by u/robdelacruz
adamrezich · 2 years ago
this is a great opportunity to ask something I've been wondering about for awhile:

what are the best options out there for hosting websites built as HTTP-serving executables (either Windows or Linux)? is it possible to do this relatively cheaply?

I ask because I've been working on a framework[0] for building websites in a compiled language recently, and while it's been a ton of fun to build and test locally as a hobby project, I have absolutely no idea if it's even remotely financially viable to host a (small- to medium-sized) website made this way, compared to all of the managed hosting solutions out there for PHP/Node/etc.

I don't want/need to pay for a whole dedicated server—I just want to serve HTTP (eventually HTTPS) from a single executable, using one or more SQLite database files. ideally, it would cost as close to your typical shared PHP host as possible.

I have almost zero experience with "cloud" hosting—I made a small game with Node on Azure years ago, and accidentally racked up charges just playing around with it in development—so I don't know if this, or AWS, or whatever else is a viable solution for this. I've seen that it is indeed possible to host a single executable on Azure, but I haven't actually tried it myself, or determined what the pricing for this would end up being.

[0] https://github.com/rezich/Newf

robdelacruz · 2 years ago
This site has a good tutorial for this. It recommends vultr (which is what I use), for $2.50 - $5 a month.

https://landchad.net/

u/robdelacruz

KarmaCake day96July 1, 2016
About
Programmer, creator of nice and useful things.

https://github.com/robdelacruz/ https://twitter.com/robdelacruz

View Original