Live data from Hacker News

You Are in a Box

jyn.dev

101–110 of 138 posts

Re: You Are in a Box

#101
post #71

The key point of the article is "your data is trapped inside your program", i.e. data models can't generally be shared between programs. One thing that has improved my life has been using apache arrow as a way to decrease the friction of sharing data between different executables. With arrow (and it's file based compressed cousin parquet), the idea is that once data is produced it never needs to be deserialized again…

Data and data models are not the same.

Sharing data is just totally undefined for the overwhelming majority of all data in the world, because there just isn't any standard for the format the data should be in.

Data models are even harder, because whereas data is produced by the world, and data formats are produced to intentionally be somewhat generalized, data models are generally produced in the context of a piece of software.

Re: You Are in a Box

#102
post #86

Sorry, I couldn't finish reading because the entire article is in capitals.

What would happen if no "Referer:" HTTP header is sent and Javascript engine is absent or disabled

Answer: The text will be mostly all lowercase, along with some sentence case

Re: You Are in a Box

#104
> Your data is trapped inside the box that is your program.

Well if we're going to get philosophical about it, "I" happen to be ~30 trillion cooperating boxes known as cells, so say nothing of all the other enclosed, enclosing, or cross-connecting boundaries one might draw.

Keeping the data/molecules/etc. "hostage" is probably to my benefit, as opposed to an, er, Evangelion ending.

Re: You Are in a Box

#105
post #93

Earlier quoted context omitted.

Looks like it checks for the referrer in main.js and adds the uppercase text-transform if you come from HN: let host; if (document.referrer) { host = (new URL(document.referrer)).host; } if (host === "news.ycombinator.com" || host === "lobste.rs") { let style = document.createElement('style'); // let transform = host === "lobste.rs" ? style.textContent = ` body { text-transform: uppercase; } pre, code { text-transfor…

Sounds like the author got called out for not capitalizing the start of her sentences[1] and decided that, if HN readers want capital letters, they will get them. [1] https://news.ycombinator.com/item?id=39027187

Which is funny because if you engage Reader Mode in the browser, everything becomes proper except sentences, which still start with lowercased letters for some reason. Names are still properly capitalized. It's truly bizarre

Re: You Are in a Box

#106

Just this past week I've been working on a toy/experimental web DSL [0] that uses dynamically loaded shared libraries as middleware that pass per request arena-allocated Jansson json objects between steps in a pipeline. It's extensible in that new middleware can be created. Influenced by bash and OCaml/F#, here is some kind of demo of the syntax: POST /api/users |> validate: ` name: string(3..50) email: email age?: n…

I've wanted to do just this. I've used libmicrohttpd, and... it's not my favorite. But if you're going to do it in C then libmicrohttpd is probably the best API to use. You get bonus points for using jq :)

If you're also using jq you might as well ditch Jansson and use jq's `jv` API. I highly recommend it.

Re: You Are in a Box

#107

This really reminds me of what Plan 9 was aiming for — breaking out of the 'box' by making everything a file, using per-process namespaces, and cleanly exposing system and network resources with proper permissions. It had that same idea: your environment shouldn't be a prison, it should be a flexible, composable space. ( https://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs ) ( https://fqa.9front.org/fqa0.html )

What an awesome username!

Re: You Are in a Box

#108
post #6

Earlier quoted context omitted.

lol yeah it absolutely is originally i had them both in one article but it was getting to be really quite long and i am still thinking through what i want to say in the follow-up

A bit off-topic, but in a shell pipeline like that, if you put your pipe chars at the end of the line you don't need backslashes and you can comment out bits of the pipe for devving. This little change was mind-blowing for me so I always try to share when I can :)

thanks :) i prefer to have the pipes on the new line so it’s more clear how the data flow works, but that’s a cute trick.

Re: You Are in a Box

#109

Earlier quoted context omitted.

This is called GraphQL

Having used SOAP and GraphQL, I really disagree with this characterization. The problem I have seen at most organizations is they simply want their APIs to reflect their database schema, even if its not a good or useful idea. They throw junk over the wall. They carry this practice over from REST to GraphQL and of course its horrible, its not a good way to use the technology. Now organizations that understand GraphQL…

Why wouldn't you want your database schema to match how you use it?

Re: You Are in a Box

#110

Earlier quoted context omitted.

it was acceptable in 2024? what year did it become unacceptable?

Since October 1995 and the publication of RFC 1855. https://www.rfc-editor.org/rfc/rfc1855 Communication has not been merely a matter of personal habit — it follows commonly accepted standards for exchanging information within a group. Ignoring these conventions risks your message being unread, unheard, or misunderstood. That said, it seems possible the author is intentionally addressing a specific subgroup that has…

Status of this Memo: This memo does not specify an Internet standard of any kind. - MY FAVORITE kind of Memo :)
Post reply on HN