Better HN
topnewbestaskshowjobs
Log inSign up

zero_shift

4,017 karma · joined Mar 10, 2017 (9y ago) · 930 submissions

I really like computers!
Submissions

comment 1y ago · link · parent

The close relationship between React (open source) and Vercel (VC funded hosting co) has made people uncomfortable for a while now.

comment 1y ago · link · parent

As the number of replies to a React article rises, the chance of a subthread bemoaning SPAs increases to 1

comment 1y ago · link · parent

That's interesting.

How do you enforce a contract on these WASI artefacts? How do you stop the user doing bad things (like infinite loops or crashing the surrounding program)?

comment 1y ago · link · parent

What primarily brings you to using backend WASM rather than deploying Go natively?

    Then don't worry [...] high performance programming" is ill defined. For the term to have any real meaning one has to be more specific about what one tries to achieve.
My main "high performance" experience is of writing WebVR applications. VR can't tolerate framerate drops because it makes users physically sick.

I don't know what the GC story is like for Go in WASM but it would make me very wary.

comment 1y ago · link · parent

I'm aware of the article's context but am asking the broader question.

comment 1y ago · link · parent

I guess my question is, why is Go compelling as a source language for WASM?

If I want to do high performance programming I don't want to worry about garbage collection.

If I can withstand GC then I know enough about JavaScript to keep V8's optimiser happy. Which will always be the best DX for writing code in the browser. (edit: though this post is specifically about WASI)

Go has never focused on binary size and probably never will unless it actually becomes an issue for Google. That's the disadvantage of having a corporate BDFL I guess.

comment 1y ago · link · parent

It's a good article although the title wrong-footed me.

I don't think "type theater" is the right term, and it may be unhelpful to say developers are using types superstitiously.

I think it's more that developers only feel responsible for correctness within the bounds of their software component. If the client sends bad data (despite passing authn), or if the database migration fakes an ORM return type, they don't see that as a problem in "their" domain.

I don't agree with them, in fact I think developers have a tendency to highly motivated "salami slicing " of component responsibilities and contracts ("it's not my problem, it's Bob's class that sucks!") but I think it's more nuanced than cargo cutting.

I do like the idea of the Postgres type builders. That's a new one for me. I'm still a little unsure how they operate end to end.

comment 1y ago · link · parent

I think the point is, we should restore the dignity of people she harmed, before we worry overmuch about restoring hers.

comment 1y ago · link · parent

I'd be interested in more technical details. What exactly is this?

Is it something like a Pico8 but emulated in the browser, i.e. with an instruction set, something resembling a bare graphics API, etc etc?

Or is it more like a high level framework for HTML5 games?

A link to source code would be helpful, maybe some docs on writing your own games for this "console"

comment 1y ago · link · parent

Were they incorrect? Most preventative measures were, at some stage, speculation or moral panics.

For example our consumer laws emerged out of anxiety about poisonous food. Our libel laws emerged out of moral panics about misuse of the press. Etc. But were still good measures.

There's also the asymmetric risk element. The social risks of the technology are larger than the material risks of putting it off. Being wary of that isn't Luddism, it's just math

comment 1y ago · link · parent

In the 18th and 19th centuries, gentlemen's clubs would vote whether to accept a new member. Each man would secretly place a ball in an urn, either black or white.

If your urn contained even one black ball, your membership was vetoed and your chances - ruined.

comment 1y ago · link · parent

No, not in a thousand years, so I'm curious what situation might be tempting you

comment 1y ago · link · parent

> Increased internal competition as employees push harder for the top ratings.

Isn't this what (allegedly) killed MS, the stack ranking system leading engineers and managers to sabotage each other?

comment 1y ago · link · parent

Does anyone know how many people at Mozilla actually work full time on the browser?

Is it a big team? Or a small core? What's their development "model"?

comment 1y ago · link · parent

I've got a question for the Go people, it's not intended to be adversarial:

What exactly does Go get out of its zero values system? What does the language get from having this ambiguity built in to every type?

comment 1y ago · link · parent

Yes, I'm aware the code doesn't run natively on the frontend. But we aren't talking about that.

comment 1y ago · link · parent

I'm well aware that browsers don't run TS. But in this instance we are talking about the server side runtime.

Building is creating the runnable artefact, but in the context of the server this artefact is already runnable, so I'd just call that "interpreting" the program

comment 1y ago · link · parent

This seems strange to me because honestly I find the Goland experience much better than Go in VSCode. But - clearly it works for you

comment 1y ago · link · parent

Can I ask (partly for my benefit, partly for yours) for a short summary of what the problem is I might have, that this tool solves?

comment 1y ago · link · parent

Bun handling the TSX at runtime is just its capabilities as an interpeter. Else we'd be saying all interpreted languages have a build step

comment 1y ago · link · parent

I've sometimes felt like starting my own fetch client builder based on a project I did at work a couple of years ago.

It worked by composing logic with S-expression like syntax, e.g.

    fetcher = compose(
      setUrl(x),
      acceptJSON(),
      compose(a, b, ...c)
    )
And then to allow these composed functions to hook in simple request / response middleware

It seems hard to get traction on a new project though. And these days I tend to use OpenAPI -> client generation. It's hard for me to work on a project I probably wouldn't use myself.

That said, competition is a good thing and I'm glad people are still building these.

comment 1y ago · link · parent

For an example usecase, the Bruno API client uses Ohm to parse its .bru API spec files

https://github.com/usebruno/bruno

comment 1y ago · link · parent

Well, it's uncertain that "quarter" in this sense came from the Middle French. Early Modern English also uses "quarter" to mean "the relations between people", Shakespeare uses it for instance

The actual link is obscure, but I don't think it matters too much - I'm observing a similarity, not attesting an origin.

comment 1y ago · link · parent

He seems hostile to regulatory oversight which is a problem when he's selling a microchip you implant in your brain

comment 1y ago · link · parent

Fun fact, chokidar is a Sanskrit word meaning watchman.

It has an interesting root, it comes from the Proto Indo-European word for "four", because he must watch any enclosure of four walls. This ancient word is the source of the Latin "quartus" which comes into English as "quarter"

The PIE sense is echoed a little in phrases like "living quarters", "give no quarters" etc

1
151617
31