HNHacker News
TopNewBestAskShowJobs

Intralexical

1,384 karma · joined December 24, 2022

submissionscomments
Intralexical··on MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C
> I guess a lot of folks consider games exclusively for folks without those accessibility needs, so maybe that's why something like Dear ImGui can live for years in thousands of projects without anyone complaining about accessibility. But, I wouldn't consider it for anything that isn't specifically about graphics and I don't think anyone else should either. (No one has to listen to me, but I think less of them.)

Immediate mode UIs are mostly for debug menus, not even gameplay/graphics. It doesn't need to be accessible to anyone except for the developer(s) choosing the library and making the game. (If the developer has different needs, obviously they can choose another library, unlike users who must live with the developer's choice.) The fourth sentence in the linked ImGUI repository explains this intention very clearly.

You can spend all this energy imagining malice and thinking less of others, but doing so does not add merit to your critique. Nor does it advance the cause of software accessibility.

Intralexical··on MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C
> You've cherry picked a very specific example that is designed to run in 3d engines.

This post is about a minimal immediate mode library made by a game dev, most suitable for debug menus.

It's unreasonable to treat it as a platform for soapboxing about "the vast majority libs" that are unrelated.

Intralexical··on MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C
The whole thing's less than 2kLoCs. If it needs ongoing maintenance, something's gone wrong IMO.

I think it's reasonable to just patch it yourself if it doesn't work with your other tools (Zig). Though thank you for sharing the heads up.

Intralexical··on Image Compression
PNG compression is just DEFLATE. For archival storage, I've been expanding PNGs with `precomp` [0] and then running modern compression algorithms on them.

[0] https://github.com/schnaader/precomp-cpp

Intralexical··on Changing how we develop Ladybird
> What's surprising is that while many submitters take that fairly well, some people get really indignant, essentially calling the maintainers ungrateful.

Why is it surprising that some people who expect results without spending any effort also feel entitled to receiving gratitude without putting in any thought?

Intralexical··on Show HN: Gaussian Splat of a Strawberry
They're basically light fields, so even though they don't represent any geometry, you could easily integrate them into the rendering pipeline at the path tracing/rasterization stage for Cycles/EEVEE.

I think the "right" way to do it without forking Blender would be to write an OSL shader. Though the way I personally would have done it would be to convert the splat into an angle-dependent Math Node tree for an Emission shader, probably automatically with a Python script.

Trouble is light fields don't block geometry, so they would effectively blend additively and you would see right through them like a hologram. Easy enough to fix though, with a dummy mesh to composite out the background. Or you could just render the splat separately outside Blender, and composite your scene on top of it.

I'm not sure why you would want to, though. The splats couldn't be lit by any of the lights in your scene, nor can they receive shadows cast by any objects in your scene, because they're precomputed light fields. Objects in your scene could be lit by the splats, but it's not immediately clear to me that it would be much more useful or better than just having photos on billboard planes.

I think there might be a misunderstanding that splats provide a way to compute realistic lighting. In reality, they're only a way to store and sample pre-computed or measured lighting AFAIK, hence the need for OP's big camera rig. So integrating them into scene lighting or skeletal animation doesn't really apply.

Intralexical··on Show HN: Gaussian Splat of a Strawberry
Since splats sample the light field after surface reflection, you can't do realtime shading with splats the way you can with raytracing and rasterization. I guess it could be animated like a holographic movie, but not like a video game and not like a 3D editor, because the light for all angles in all frames has to be precomputed.
Intralexical··on Profiling.sampling – Statistical Profiler
With the obvious caveat that low-level game engine, image/video processing, numerical code etc. isn't really viable in Python. But outside of that, it's fast enough for gluing together other code that's doing the heavy lifting.
Intralexical··on Profiling.sampling – Statistical Profiler
Generally you choose Python for the conciseness you mentioned, and then move the performance-critical functions into another language like C or (I find to be easiest) Cython. Ideally most of your code stays Python, and you either optimize self-contained pieces, or find library bindings that have done it for you.

A profiler like this can be used to identify which parts to rewrite in a faster language. Sometimes it's easier to write everything in Python first, then measure, than guess at the start which parts need to be fast.

You can also get gains by switching algorithms, both in pure Python and when using a compiled library like `numpy`. And there are also some operations, like string manipulation or the `sqlite3` module, where the Python runtime's implementation has already been optimized in a compiled language.

Intralexical··on Venom and hot peppers offer a key to killing resistant bacteria
I have no idea if this is true, but I remember seeing in a Kurzgesagt video that developing phage resistance reduces antibiotic resistance, and vice versa. So you might corner bacteria by using both.

https://www.youtube.com/watch?v=YI3tsmFsrOg&t=5m18s

Intralexical··on Internet Archive Switzerland
They've been constantly trying to set up P2P solutions. Torrents, DWEB, IPFS, Filecoin, WebTorrent, YJS, whole bunch of tech acronyms. I'm not sure much of it has really caught on?

https://blog.archive.org/tag/decentralized-web/

https://github.com/internetarchive/dweb-transports

Third-party attempt:

https://wiki.archiveteam.org/index.php/INTERNETARCHIVE.BAK

Turns out it's hard! Or maybe just too niche. But you can also help them today, by seeding some of collections that are available as torrents.

Intralexical··on Internet Archive Switzerland
Can you share more about your time at the Canadian one? I feel like there was a big hullabaloo about it years ago, but it's not really clear what they do.
Intralexical··on OpenAI’s o1 correctly diagnosed 67% of ER patients vs. 50-55% by triage doctors
Do you know how examples work? Or methodology? The claim I made is that statistical accuracy percentage ≠ healthcare outcomes, and you will mislead yourself in dangerous ways if you believe a headline that implies they're interchangeable. Not that the model literally guessed common colds when the patients had... boneitis...

The lupus anecdote on its own is irrelevant to the whether the statistics are being interpreted in valid ways or not. Also, I said nothing about luck.

Intralexical··on OpenAI’s o1 correctly diagnosed 67% of ER patients vs. 50-55% by triage doctors
> One experiment focused on 76 patients who arrived at the emergency room of a Boston hospital.

> In one case in the Harvard study, a patient presented with a blood clot to the lungs and worsening symptoms.

That's a single anecdotal fluke from the study, which is misleadingly used to represent the headlining percentages.

If you read the linked paper, it says the LLMs did not outperform any group of doctors in the most important cases:

> The median proportion of cannot-miss diagnoses included for o1-preview was 0.92 [interquartile range (IQR) 0.62 to 1.0], although this was not significantly higher than GPT-4, attending physicians, or residents.

And again, the bigger issue is that skimming nurse's notes and predicting the next tokens, as the study made the doctors do, is not how doctors diagnose medical conditions.

Intralexical··on OpenAI’s o1 correctly diagnosed 67% of ER patients vs. 50-55% by triage doctors
Not only is the study testing something which only vaguely resembles how doctors diagnose patients, but isolated accuracy percentages are also a terrible way to measure healthcare quality.

If 90% of patients have a cold, and 10% have metastatic aneuristic super-boneitis, then you can get 90% accuracy by saying every patient has a cold. I would expect a probabilistic token-prediction machine to be good at that. But hopefully, you can see why a human doctor might accept scoring a lower accuracy percentage, if it means they follow up with more tests that catch the 10% boneitis.

Intralexical··on Whohas – Command-line utility for cross-distro, cross-repository package search
The search APIs are separate from the repository URLs, and the different distros' APIs need to be parsed in different ways. And before you ask, the search APIs have to be separate from the repositories, if you don't want to waste disk, network, and time keeping hundreds of local index files up-to-date every week.

They can't just be "configured" by changing a URL. I guess maybe you could self-host the search page for some of the distros, and reuse the parser, but are people really doing that? Otherwise, you'd have to write new code to parse the results, at which point you might as well soft-fork the script anyway.

> Generally I advice against hard doing stuff that changes often and may need to be adjusted for different users or organizations.

YAGNI. And if your org does need it for some reason, you're probably better off running something specifically tailored for your own needs instead of whatever implementation makes it in.

The whole script's only 1300 lines. Would adding spending 150 lines on configuration and littering the user's dotfiles be worth it? Now what happens if the configuration's missing/corrupted? When you update the script, do you keep the old dotfile that might be using a deprecated API, or do you replace the old configuration and clobber any customization the user's done? Oops, there go another 1,000 lines, on edge cases, option flags, conf merging, warning messages... And good luck getting bug reporters to explain their configuration changes!

Also, this stuff doesn't "change often". The distros literally can't change it often, because doing so might break LTS stability. I know it's fun to point out perceived flaws in other people's work, but in this case, the URLs are tightly bound to the parsing logic, which is the right place to put them IMO.

Intralexical··on Whohas – Command-line utility for cross-distro, cross-repository package search
Does it still work, though?

Where else would you put the repository domains?

Intralexical··on Joby kicks off NYC electric air taxi demos with historic JFK flight
I like the idea of fuel cells, but hydrogen's going to have an image problem as soon as people see the failure mode, if it's just being stored as H2 in compressed tanks. Liquid fossil fuels and electric batteries burn with a gradual flame. Hydrogen suddenly detonates, with a supersonic, shattering shockwave, if it's mishandled.

Even with Cold War money, Lockheed's famed Kelly Johnson couldn't make the logistics work for the CL-400.

Intralexical··on Zed 1.0
Copying my own comment below, with GH links and my (non-AI) summary after skimming:

> https://github.com/zed-industries/zed/issues/7054

> https://github.com/zed-industries/zed/issues/12589

> TL;DR: Mix of language tooling, unsigned proprietary blobs, corrupted and/or GLIBC-dependent files, redundant copies of already-installed executables. The Node packages especially are able to run scripts on install. Personal preference aside, might also create issues with security laws, certifications. All without user consent.

> Issues opened in January and June 2024. They've been rejected, closed, and opened a couple times since then. No changes directly improving this yet as of April 2026.

So... If you want broad language support via LSP servers, then you're going to have to bring in other ecosystems, and Node/Typescript is a big one that doesn't always have alternatives. [0] That's not a Zed-specific problem.

IMO the real issue with Zed is the "runs them by default without asking" part. Plus the questionable practices with binary blobs and the cavalier attitude in the discussions, when I can just use an editor that... Doesn't do any of that.

[0] https://microsoft.github.io/language-server-protocol/impleme...

Intralexical··on Zed 1.0
If you need an education in law to be able to trust a business isn't trying to steal from you, then maybe you just shouldn't trust that business at all.

Especially for something like a code editor, where plenty of less-shady competitors are available.

Intralexical··on Zed 1.0
https://github.com/zed-industries/zed/issues/7054

https://github.com/zed-industries/zed/issues/12589

TL;DR: Mix of language tooling, unsigned proprietary blobs, corrupted and/or GLIBC-dependent files, redundant copies of already-installed executables. The Node packages especially are able to run scripts on install. Personal preference aside, might also create issues with security laws, certifications. All without user consent.

Issues opened in January and June 2024. They've been rejected, closed, and opened a couple times since then. No changes directly improving this yet as of April 2026.

Personally, I think even if they eventually fix this, given the attitude shown towards their users' machines, I should probably just use an editor where I don't have to worry about it.

Intralexical··on Butterflies are in decline across North America, a look at the Western Monarch
Asbestos... Lead, CFCs, mercury, cadmium, radium, petroleum, DDT, BPA, microplastics, PFAS, organophosphates, pyrethrins... The more wonder materials turn out to be devastating for human health or environmental stability, the more I think maybe the "no (synthetic) chemicals" crowd have a point.

Or rather, that maybe we're learning the wrong lesson each time. Maybe instead of "asbestos is bad" or "DDT is bad", the real lesson should have been "biological and ecological systems are incredibly fragile outside of the exact combination of environmental conditions and chemical inputs they've specifically evolved to handle".

Too much complexity, too many delicate mechanisms and feedback loops. Can't afford to keep playing whack-a-mole, every generation we replace the old poisons and add some new ones. If we keep introducing new molecules and quantities of substances that evolution hasn't had a chance to adapt to, then we shouldn't be surprised that we keep breaking things.

But let's not pretend we don't use pesticides for a reason. People gotta eat, and pyrethrins are already an improvement AFAIU, less toxic to mammals, similar to molecules that exist in nature. But still, a cudgel. Maybe we need to take ecological engineering seriously, control pest species by simultaneously cultivating stable ecosystems of insectivores/predators and hyperparasites, poison spray not required...

Intralexical··on Audio tapes reveal mass rule-breaking in Milgram's obedience experiments
Small but important nitpick. I think, most commonly their worldview was already built, and would have been the same regardless. Milgram just provides a veneer of legitimacy, losing which would cause problems for them.
Intralexical··on Audio tapes reveal mass rule-breaking in Milgram's obedience experiments
6 of the 7 "replications" mentioned in that Wikipedia section are literally TV shows and performance artists.

...Which is a good metaphor for the "experiment" as a whole.

Intralexical··on Audio tapes reveal mass rule-breaking in Milgram's obedience experiments
It should have been rejected from the outset. What Milgram did in his experiments was nothing less than construct an elaborate setup so he could psychologically torture dozens of well-meaning people. The ethical violation was already recognized at the time, and given that, nothing else he claims about method or implications can be trusted.
Intralexical··on Audio tapes reveal mass rule-breaking in Milgram's obedience experiments
Making someone think they're an accomplice to torture is itself recognized as a form of psychological torture. Telling someone that they're helping to advance science proves nothing, except that people can be deceived, manipulated, and exploited by bad actors.

Milgram decided to repeat his gross ethical violation 30 times(!), with dozens of test subjects each time. Overall, the majority of people actually disobeyed the orders to continue with higher voltages.

I think the only reason it's become so popular is because it makes for a shocking story, with grandiose implications. The specific "agentic state theory" Milgram invented is not backed up by his data, and personally, I find it philosophically dubious and psychologically concerning that he gravitated to it.

See:

https://www.bps.org.uk/psychologist/why-almost-everything-yo...

https://journals.sagepub.com/doi/abs/10.1177/095935431560539...

Intralexical··on You gotta think outside the hypercube
I think the idea is that the geometry of straight lines in 4D should be similar enough to picture using the same mental abilities.

How we see is frozen by not only physics, but also biology. We can't actually see in 3D, only in the 2D of our retinae (and the embedded 2D of light-exposed surfaces). That's true for both 3D and 4D objects. I suppose fish, with their electroreceptive abilities, might be the only animals that can sorta "see" in true, volumetric 3D.

Intralexical··on You gotta think outside the hypercube
> It is sometimes associated with our inability to think of new colors, but I think this is a completely different problem.

As an aside, thinking of a new color is relatively easy. You can sorta actually see new colors just by making a really good pigment[0], or shooting cone cells with lasers[1].

But there's also the possibility of having a new photoreceptor. In which case, you don't just gain 1 new color. You gain 3 new secondary colors, plus an entire new type of 4 "tertiary colors", each of which is as visually distinct as cyan, magenta, and yellow are. And the colorspace itself becomes a 4-dimensional volume, with every existing color able to blend into smooth graduations of the new cone cell signal.

[0] https://www.youtube.com/watch?v=_NzVmtbPOrM [1] https://en.wikipedia.org/wiki/Olo_(color)

Intralexical··on You gotta think outside the hypercube
Are you sure we can't visualize 4D objects? Or rather, what exactly does that mean?

Can we visualize 3D objects? Or do we reason about 3D objects, but only visualize a 2D projection of 2D boundary surfaces embedded in 3D space? I'm definitely not thinking about the inside of my desk lamp, or even its back side, even though those are as much a part of the 3D object as the front surface.

Can you visualize a 1D projection of a 2D object? Probably, but is it a little tricky? How about a 1D projection of a 3D object? And when that 3D object moves? How about a 2D projection of a 3D object, but seen from the inside out with a Hammer retroazimuthal projection, instead of viewed from a distance with the embodied camera eye and wonderfully simple rectilinear(ish) projections that we're so familiar with?

Arguably, I think we can visualize 4D objects. They just look the same as 3D objects, because the visualization is itself a 2D projection. If they move, they look like wobbly 3D objects, as we pick up a different "slice" or "surface".

Now, we don't know very many 4D shapes, because we don't encounter them in our lives. But I think that's fully explained by familiarity, without invoking the idea of an arbitrary limitation. We've all seen lines, sheets, boxes, balls, pyramids— Try describing to a random stranger what a Strandbeest or a Klein bottle looks like.`

Intralexical··on Claude AI Helped Bomb Iran. But How Exactly?
Magical thinking is rarely constructive as an argument, but as a fig leaf, it might keep opposition talking for long enough to force through a fait accompli.
← PreviousPage 2 of 19Next →