Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haberman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
181.
▲
by
haberman
3y ago
Ideally a new Lua dialect would be capable of compiling to both Lua and LuaJIT. The language is effectively forked, with the fastest implementation (LuaJIT) and the official implementation (Lua) living in seemingly irreconcilable worlds.
182.
▲
by
haberman
3y ago
You suggested it wasn't possible (or practical), so it seemed worth clearing up that it is indeed possible. It is nice to cut the number of distributed artifacts by a factor of four. Also, depending on third-party repositories full of
183.
▲
by
haberman
3y ago
> I don't think the Limited API is very useful, as a practical matter for the common distribution methods you need the wheel to be built with the target Python version. The limited API provides ABI stability, which allows building a
184.
▲
by
haberman
3y ago
I think this technique would not work with the limited API: https://docs.python.org/3/c-api/stable.html#limited-c-api The Limited API has a nice benefit of letting you build artifacts that are compatible with a wi
185.
▲
by
haberman
3y ago
> As a central part of resource management, the OS thread scheduler must maintain the following, simple, invariant: make sure that ready threads are scheduled on available cores. As simple as it may seem, we found that this invariant is
186.
▲
by
haberman
3y ago
> short of putting them in jail and when they come out they're just going to be using drugs in public all over again. The "Seattle is Dying" documentary describes a treatment program called the "MAT Program" (med
187.
▲
by
haberman
3y ago
> They can't really be done as libraries. It's definitely the case that you can't implement a string type in WASM and have it interoperate with JavaScript strings. But there is no reason that JavaScript strings can't
188.
▲
by
haberman
3y ago
> To work with GC, you need some way to track if the GC'd object is accessible in WASM itself. I've never heard of a GC with that kind of API. Usually any native code that holds a GC reference would either mark that reference
189.
▲
by
haberman
3y ago
I don't understand how the counter-proposal makes WebAssembly a worse compilation target. Take the simple example of memory.copy. How is it worse to compile memcpy() to import+memcpy() rather than memory.copy? Why can't a string
190.
▲
by
haberman
3y ago
I really have trouble understanding the push to provide higher-level features as intrinsic types and instructions. AIUI, the main alternative to stringref (linked in the article: https://github.com/WebAssembly/js-strin
191.
▲
by
haberman
3y ago
This really resonates with me. I've attempted self-study about statistics many times, each time wanting to understand the fundamental assumptions that underlie popular statistical methods. When I read the result of a poll or a a scie
192.
▲
by
haberman
3y ago
I would say it’s reproduction of an exact copy that represents copyright infringement, not dissemination of the digital brain that remembered it. If and when someone tries to profit off an AI work that would be copyright infringement if a h
193.
▲
by
haberman
3y ago
In that case, it sounds like `length` on Unicode strings simply shouldn't exist, since there is no obvious right answer for it. Instead there should be `codepointCount`, `graphemeCount`, etc.
194.
▲
by
haberman
3y ago
I don't think photographs are generally advertised as "open source", because there is not generally a source code form of a photograph. The MIT license doesn't distinguish between binaries and source, but the GPL does.
195.
▲
by
haberman
3y ago
100 times this. C++ is progressively making more and more of the language and stdlib available at compile time (constexpr, consteval, constinit). Once this is accomplished, there will be two very complicated Turing-complete programming
196.
▲
by
haberman
3y ago
I went the opposite direction: I used to be in the linear code camp, and now I'm in the "more functions" camp. For me the biggest reason is state. The longer the function, the wider the scope of the local variables. Any cod
197.
▲
by
haberman
3y ago
Mathematica is certainly as powerful as a TI-89, but not OSS.
198.
▲
by
haberman
3y ago
I remember being a kid and fawning over the upgrade from a TI-86 (which could not do symbolic manipulation) to the TI-89 (which could). As an adult and OSS enthusiast, I've often wondered if there is an OSS option that can at least mat
199.
▲
by
haberman
3y ago
For anything remotely poetic (including song lyrics), I like to hear more literal translations, because the creative turns of phrase is is what makes them enjoyable.
200.
▲
by
haberman
3y ago
Came here to say this. It follows that light is ≈1 million times the speed of sound.
201.
▲
by
haberman
3y ago
> Normally I follow the news every hour or so, getting a drip-feed of anxiety-provoking facts and trying to smush them together into some kind of sense. Instead, I simply read a physical newspaper once a day. I really miss the newspaper
202.
▲
by
haberman
3y ago
> That'd be true if every project started from scratch with only the language standard library. And yet..... almost any project you start is going to be dependent on a large chunk of code you didn't write, even on greenfield pr
203.
▲
by
haberman
3y ago
> When in reality, real programs do not spend all their time in one (or even a handful) of super-hot loops. This paper from 2015 finds that a large amount of CPU in Google data centers is spent in a relatively small number of core compon
204.
▲
by
haberman
3y ago
> There are undeniably power users for whom every last bit of performance translates to very large sums of money, and I don’t claim to know how to satisfy them otherwise. That is the key, right there. In the 1970s, C may have been consid
205.
▲
by
haberman
3y ago
> I can see docker in some cases (rarely) for C programming. But devcontainers? That's like reaching around your head to touch your nose. I thought devcontainers were merely a way of telling VSCode to host your dev environment in a
206.
▲
by
haberman
3y ago
More and more languages are being built on top of the "upb" C library for protobuf ( https://github.com/protocolbuffers/upb ) which is designed around arenas to avoid this very problem. Currently Ruby, PHP, and
207.
▲
by
haberman
3y ago
Wow, from this I learned that a property directly adjacent to mine recently obtained permits to build a DADU. I almost considered doing a trial of their subscription to get more details, but at $89/month it's way beyond what I
208.
▲
by
haberman
3y ago
Interesting. I was able to get Clang to generate this using `-fcf-protection=branch`: https://godbolt.org/z/rooP8vPsM It looks like endbr64 is a 4-byte instruction. That could be a significant code size overhead for
209.
▲
by
haberman
3y ago
This is a couple months old, but is a reasonably concrete proposal: https://twitter.com/OrbStack/status/1656326409995055104
210.
▲
by
haberman
3y ago
I always assumed I'd get LASIK if my vision started to degrade. Then I learned that apparently LASIK can't treat age-related farsightedness: fixing your close vision will mess up your far vision. The only option AFAIU is to trea
More ›