Live data from Hacker News

30 years of tags

artmann.co

101–103 of 103 posts

Re: 30 years of <br> tags

#101

Earlier quoted context omitted.

> That's folk wisdom, but is it actually true? "Hundreds of lines just to grab a query parameter from a URL." No, because... > In practice you would probably parse all parameters at once and maybe use a library. In the 90s I wrote CGI applications in C; a single function, on startup, parsed the request params into an array (today I'd use a hashmap, but I was very young then and didn't know any better) of `struct {cha…

> I wonder what a C library would look like today, for handling HTTP requests. Isn't that CURL?

>> I wonder what a C library would look like today, for handling HTTP requests.

> Isn't that CURL?

Curl sends requests, it doesn't handle incoming requests.

Re: 30 years of <br> tags

#103

Earlier quoted context omitted.

It's still written in Ur/Web. And the type-safety of Ur/Web is the reason I started writing it -- I couldn't imagine myself using untyped JavaScript. Ur/Web is not very practical for reasons other than type safety: the lack of libraries and slow compilation when the project gets big. The language itself is good, though. Nowadays, I would probably choose OCaml. It doesn't have Ur/Web's high-level features, but it's ty…

Whoa, that's cool! What do you think about Typescript? I mean it's unsound but - it sounds like an ok compromise

Didn't use TypeScript, so can't say much. I guess some types are better than no types, and it's easier to use for JavaScript developers.

Personally, I'd prefer a fully typed language.

Post reply on HN