Better HN
topnewbestaskshowjobs
Log inSign up

samtheprogram

1,451 karma · joined Mar 22, 2017 (9y ago) · 601 submissions

Submissions

comment 2y ago · link · parent

Not "Node.js code" specifically as Node.js itself can't be compiled to wasm. JavaScript can be compiled to wasm, but that won't include the whole Node.js standard library and doesn't seem to be what you are asking.

Check out Deno for a sandbox that is getting there. Their new release does (aim to) support most Node.js code, where it previously and intentionally did not support node_modules nor CommonJS to the best of my knowledge.

If you care more about wasm than sandboxing in general, one project called javy is interesting, but you'll quickly notice they bring their own IO library and not much else in terms of something that compares to Node.js' API.

comment 2y ago · link · parent

If you want some sanity, bare git repos, of course :)

comment 2y ago · link · parent

Per the `wgpu-py` README:

> Technically speaking, wgpu-py is a wrapper for wgpu-native, exposing its functionality with a Pythonic API closely resembling the WebGPU spec.

`wgpu-native` is a wrapper with FFI/bindings for the Rust `wgpu` per their READMEs

comment 2y ago · link · parent

From what I heard, they will ultimately halt production, assuming no major changes in sales, at around 500,000 - 600,000 produced. Based on my understanding of the sales, they will have a considerable number of units still available even if the production stops.

comment 2y ago · link · parent

You could easily implement encryption on Supabase assuming you are doing server side / cookie auth, since you provide the storage adapter that actually saves it to and retrieves it from the cookies.

As far as random logouts — I assume the implementation used isn’t refreshing the JWT token, or they’re expecting longer supported refresh intervals. I haven’t had customers ask that their sessions don’t expire, so this hasn’t been an issue for me.

I’m a big fan of Supabase. I’ve written a Rails app that supports the same RLS that Supabase does and can interoperate with each other, and I think that’s a testament to its design. Simple and understandable, (mostly) single-concern abstractions that if you were to move off or self-host, you can take piecemeal with you.

In that regard, I don’t see the post-user-creation copying of the user data to the public table as lock-in… it’s trivial?

comment 2y ago · link · parent

Second this. Just change the EDITOR variable.

You’re getting downvoted (probably because of the mini Vim tutorial in #2) while the author of the post wrote a whole TUI because they didn’t know to change their EDITOR variable.

Learn your tools, people. This is the equivalent of a contractor taping rulers together because they didn’t realize their bag comes with a tape measure.

comment 2y ago · link · parent

So, OS’s that don’t ship with GNU components aren’t Unix?

See: any BSD.

All of the things you mention in your post have _alternatives_ that also comply with whatever they reference: there are other MP3 encoders, there are other types of gas, there are other democratic republics…

And more importantly, GNU isn’t Unix.

comment 2y ago · link · parent

Doesn’t GNU literally stand for “GNU’s not Unix”

comment 2y ago · link · parent

Symbian was on a lot of different brands, so based on a sibling comment I’d say it was a Symbian feature.

comment 2y ago · link · parent

Yeah, but you only need to approve an app once. I think I Ctrl+Open an app like once a quarter on average, sometimes going most of a year. This really isn't a big deal.

comment 2y ago · link · parent

PREEMPT_RT, please!!

comment 2y ago · link · parent

But if it were to happen, what are the chances a fork of Bitcoin (that doesn’t respect this ruling) becomes more mainstream than Bitcoin?

Less than 10%, and that’s generous.

comment 2y ago · link · parent

That’s worldwide and vastly represented by countries that missed out on the industrial revolution or have corrupt and/or authoritarian governments, no?

https://worldpopulationreview.com/country-rankings/starvatio...

254.

Scientists just made mice 'see-through' using food dye – and humans are next(livescience.com ↗)

1 points · by samtheprogram · 2y ago · 1 comment

comment 2y ago · link · parent

It’s desktop app that’s built on Electron.

Although, yes, when I’m on resourced constrained machines, I open it in a Firefox tab.

comment 2y ago · link · parent

> way they do ranked ladder

Could you elaborate? I play the game, but I don’t play much of anything else with ranks so I’m curious what ladder means here and the alternative examples.

comment 2y ago · link · parent

So, I take it you haven't tried Astro then?

comment 2y ago · link · parent

I think submodules make sense in a lot of use cases, but a gotcha I saw with a team introduced to them recently is that pulling down from a branch or switching branches doesn’t update the submodule and/or stop you from changing branches if it is modified without being committed in some way.

If I could have submodules that operated that way I think submodules would be a lot more straightforward to newcomers.

comment 2y ago · link · parent

> Authorities interviewed the kid, who apparently explained that he learned how to hide his identity online.

> The name of the 11-year-old has been released but Gizmodo is opting not to share it. The decision to do a bunch of swatting calls was dumb and incredibly dangerous and hopefully, this kid eventually learns his lesson. But he’s still young and here’s hoping this doesn’t ruin his life in ways that he can never bounce back from, though he does face very serious charges.

Gotta love that irony.

comment 2y ago · link · parent

That makes sense. I guess since using .js for the relevant imports just works in TypeScript I should be happy then…

comment 2y ago · link · parent

Bun’s DX is pretty unprecedented in this space, and most of my use cases are now covered / not causing Bun to crash (when actually using run-scripts with `bun run`).

Meanwhile, I can’t configure node to not require extensions on import, nor have tsc configured to automatically add .js extensions to its compiled output, without adding on a bundler… although native TypeScript support would remedy this nit quite a bit, I can’t imagine the user experience (or performance) to match Bun’s when it reaches stable.

comment 2y ago · link · parent

Optics / stock price

comment 2y ago · link · parent

I used a server running in AWS for this while in China. Sometimes you don’t have a VPN, or using certain VPN providers might be heavily monitored and/or blocked.

comment 2y ago · link · parent

Elon Musk promoted racism?

comment 2y ago · link · parent

There isn’t a lot of switching cost for something like Multi. In most cases a month seems extremely short and would grind my gears too, but it’s not like you’ll need to move anything off of Multi.

comment 2y ago · link · parent

It’s the best video / voice call / screen sharing / etc software out there IMO. Unfortunately Mac only so I only use to it to collaborate with coworkers.

Guess I’ll be trying Tuple.app next

comment 2y ago · link · parent

They aren’t referring to TSA precheck, they are referring to Clear PLUS.
1
8910
21