News for hackers. Stuff that matters.
Re:Show HN: Demo of Wiki and Forum coded in C under 80k by teaearlgraycold on Friday December 04, 2015 @12:06AM (#10674771)
They claim it's got no dependencies though - so somehow they've got their own sockets implementation crammed in there.
Re:Show HN: Demo of Wiki and Forum coded in C under 80k by jheriko on Friday December 04, 2015 @12:23AM (#10674835)
i doubt it tbh, i bet he means no /3rd party/ dependencies other than the ones that came with the development environment.

the C standard library and the usual set of headers and os functions that you get in most C environments is not what people tend to mean by dependencies....

Re:Show HN: Demo of Wiki and Forum coded in C under 80k by fit2rule on Friday December 04, 2015 @08:45AM (#10676242)
POSIX?

Its quite possible to have a C-based sockets-/signals- handler in a single source file, say .. 48k lines of code or so. I've seen many robust system daemons with just such an implementation.

3rd party dependencies are definitely an issue that very few languages have managed to promote, since languages either want to promote (or demote) such circumstances as mass-package (i.e. mass usage of the language) in a broad commercial/industrial/social context.

But its not naive to write such things as a Wiki and a Blog in C. Just .. dangerous. I imagine there are, however, some good 3rd-party C libraries available to do less-dangerous implementations, however...

Re:Show HN: Demo of Wiki and Forum coded in C under 80k by jheriko on Friday December 04, 2015 @11:10AM (#10677103)
it never seems to actually be posix, but yeah that kind of stuff.

it is interesting stuff.

Re:Show HN: Demo of Wiki and Forum coded in C under 80k by ronsor on Friday December 04, 2015 @12:16PM (#10677560)
It's served from another httpd server, no sockets library was used. Just simple file I/O, string.h, and its own implementation of hashing