HNHacker News
TopNewBestAskShowJobs

alexisread

648 karma · joined August 3, 2014

submissionscomments
alexisread··on Golang's big miss on memory arenas
There are many automatic memory management systems ranging from the simple clearup of immutable systems (https://justine.lol/sectorlisp2/), to region allocation, to refcounting with cycle collection, and the full-fat tracing.

I'd have thought that allocating a block of memory per-GC type would work. As-per Rust you can use mainly one type of GC with a smaller section for eg. cyclic data allocated in a region, which can be torn down when no longer in use.

If you think about it like a kernel, you can have manual management in the core (eg. hard-realtime stuff), and GC in userland. The core can even time-slice the GC. Forth is particularly amenable as it uses stacks, so you can run with just that for most of the time.

alexisread··on PGlite – Embeddable Postgres
Can this be used as a read-replica to a normal PG instance? I'm thinking synced browser cache here.
alexisread··on Ask HN: What Are You Working On? (Nov 2025)
OOI how does the org-mode dev work? Are you tangling and then compiling in a hot-reload loop?
alexisread··on Radiant Computer
It looks like you've looked over a number of languages, but I don't see anything about Forth, Forsp, Ante, Steps, Austral, Wat or Vale? I'd suggest they all have useful components to steal from :)

https://github.com/ablevm/able-forth

https://xorvoid.com/forsp.html

https://antelang.org/blog/why_effects/

https://tinlizzie.org/

https://news.ycombinator.com/item?id=43419928

https://github.com/GiacomoCau/wat-js/tree/master

https://verdagon.dev/grimoire/grimoire

alexisread··on How A Scottish maritime museum ended up in Israel's 3D propaganda videos
You replied to my comment about Lebanon. You could have replied to the OP with those links but chose not to, hence this discussion is about my comment. My comment is on the IDF lying about tunnels under hospitals in Lebanon, which is validated with the BBC link.
alexisread··on How A Scottish maritime museum ended up in Israel's 3D propaganda videos
Those are not in Lebanon? Whataboutism isn't an answer.

https://www.bbc.co.uk/news/videos/c9818n8v7d8o

Is just one of the western media sources about Lebanon.

alexisread··on How A Scottish maritime museum ended up in Israel's 3D propaganda videos
After all the lies from the IDF, I'm still surprised anyone takes their word anymore without corroborated supporting evidence. So many of these were debunked even by western media (eg. tunnels under hospitals in Lebanon). Now that Tiktok US has been bought, I guess we'll see more of this junk on there.
alexisread··on Erlang ARM32 JIT is born
Either TBH, I imagined the main issue would be ram, even with psram. EQMX is used a lot for IOT and it'd be interesting seeing more heavy loads on the edge.
alexisread··on Erlang ARM32 JIT is born
Gah, misread that as esp32 JIT, which would be eye opening!
alexisread··on Delimited continuations in lone Lisp
Interestingly Wat implements a callstack in a userland VM, to implement it's delimited continuations. Ergonomically it would be good to implement algebraic effects on top, but the basis is there, along with demos of exception handling, branching, fibres etc.

https://github.com/manuel/wat-js

Obviously with forths the callstack is already in userland to implement these things, might be a bit brain-bending in forth.

alexisread··on How to create an OS from scratch
...and a little further on, the OS/app starts to look like a distributed database.

I think it's a good case for including lattice types in the OS ie. From the ground up. Bear in mind that an OS has an API ie. A DSL/language for it, Micropython is a good example:

https://www.neilconway.org/docs/socc2012_bloom_lattices.pdf

alexisread··on Easy Forth (2015)
Oof, I forget that most forths are a bit mind bending with the compiler STATE. There are 2/3 alternatives to using compiler state aka IMMEDIATE.

https://github.com/dan4thewin/FreeForth2 This uses a two-pass search, for macros` and after that immediate words.

The most interesting one is Able forth https://github.com/ablevm which uses flow control to defer execution, aka quotations. I find using quotations instead of immediate modes easier to understand.

With both of these, they always compile expressions before executing them, so IF/THEN/ELSE can be used at any time.

alexisread··on Easy Forth (2015)
You should be able to dive in quickly using the very nice forthkit, which finishes with a working shell / REPL:

https://github.com/tehologist/forthkit

It is an implementation of eforth, a portable forth:

http://www.exemark.com/FORTH/eForthOverviewv5.pdf

alexisread··on Easy Forth (2015)
Have you tried looking at Sectorforth?

In most languages branching is a fundamental construct, it's created here (with comments)

https://github.com/cesarblum/sectorforth/blob/master/example...

Effectively IF compiles a 0= ie. If false and then a dummy target address. THEN (aka ENDIF) compiles the real target address over the dummy one, which is the address after THEN.

alexisread··on You did this with an AI and you do not understand what you're doing here
> The reporter was banned and now it looks like he has removed his account.

I'm wondering (sadly) if this is a kind of defense-prodding phishing similar to the XZ utils hack, curl is a pretty fundamental utility.

Similar to 419 scams, it tests the gullibility, response time/workload of the team, etc.

We have an AI DDoS problem here, which may need a completely new pathway for PRs or something. Maybe Nostr based so PRs can be validated in a WOT?

alexisread··on JIT-ing a stack machine (with SLJIT)
In my spare time I'm looking at JIT from a different perspective.

https://github.com/dan4thewin/FreeForth2/tree/master

This is a Forth with a few tricks, namely using flow control instead of a compilation switch flag. This, always compiling into an eval buffer before execution, and use of macros, allows you to unroll a function/word/expression before execution, which makes it fast.

Macros can be used to do stack caching (though it doesn't here) and cross compilation etc.

Lastly, Freeforth caches the top two stack items in registers, so at compile time it avoids swap by register renaming.

This all is quite a different approach and somewhat language specific. Just wanted to highlight the variety, as uxn is not actually that far from forth and has such a different approach.

alexisread··on Top UN legal investigators conclude Israel is guilty of genocide in Gaza
The points still stand and remain unaddressed, that are:

Conflation of Israelis and Jews and the false claim of antisemitism.

The lack of evidence of UNRWA-Hamas association, such that Israel's claims are deemed baseless by multiple countries and they restart funding. That is not a UN decision, it is by each country and serves as a good benchmark for baseless.

As to some posts to Hamas members, Israel have called reporters Hamas members simply for reporting with Hamas members, so as far as a few posts go, classification is the issue here, to the point where Reuters and other news agencies have stopped sending the IDF their locations, as the IDF label them Hamas supporters and deliberately target them. Actions are a much more clear signal. In Lebanon, the IDF saying there were Hamas tunnels under hospitals was debunked by numerous news organisations like the BBC, Sky etc. This is the IDF here misclassifying and outright lying, let alone an Internet site.

Lastly, given that both Trump and Netanyahu have openly and on TV advocated ethnic cleansing, and that these comments get next to zero blowback, the US and Israel appear to be the morally bankrupt ones. If an internet site takes precedence over open admission by presidents, multiple country's decisions, evidence presented from an acknowledged organisation (and confirmed from multiple sources), then I'd argue that there's something amiss here.

alexisread··on Top UN legal investigators conclude Israel is guilty of genocide in Gaza
I was referring to your conflation of Israelis with Jews, and calling dismissal of an Israeli news source antisemitic, which it is not.

I'm saying that a biased Israeli news source is less valid than the actions of dozens of countries, which decided to restart funding.

It is telling that UN votes for a ceasefire are only opposed by the US, Israel and a handful of client states. This is a genocide, and most countries seem to agree on that.

alexisread··on Top UN legal investigators conclude Israel is guilty of genocide in Gaza
Which are not validated by the UN, Norway etc. https://news.un.org/en/story/2024/04/1148821 If the claims were valid, countries would not have restarted funding to UNRWA. Simple.

I note you've not denied the issues with claims of antisemitism which are important.

alexisread··on Top UN legal investigators conclude Israel is guilty of genocide in Gaza
Quite simply Israelis and Jews are not the same group, otherwise you would be holding all Jews on the planet responsible for this genocide. Dismissing the source for being Israeli is not antisemitic.

There are many examples of Israeli sources lying about the state of things, from the baseless claims against UNRWA to the unconscionable excuse of burying medics and the ambulances they were in, to avoid wild dogs eating them.

Israeli sources rarely offer evidence to refute the claims presented in this report, and a cry of antisemitism, as stated, conflates Judeism with Israeli nationality, hence these sources are worthless at best.

alexisread··on The demo scene is dying, but that's alright
Perfect timing, this was released yesterday. Minecraft on a 16mhz 68030

https://youtu.be/nHsgdZFk22M?si=HVFlgllY6sPld4v3

alexisread··on Lit: a library for building fast, lightweight web components
It's a combination of things.

Adding polyfills for older browser targets.

Tree shaking, that is removing code that is not used.

Bundling several files into one to save on requests.

Transpiling, that is, if you want to write code in a different language to javascript eg. Typescript then vite will compile that to javascript.

Linting ie. Reformatting your code to standardise it across developers.

Vulnerability checking, are your dependencies out of date?

Execution of build tasks eg. Preparing static assets like images.

Packaging your app for deployment eg. Zipping

Including logging and hot reload triggers during development.

Bundling environment specific changes eg. Different backend urls if deploying to test envs.

Running unit tests on rebuild to avoid regressions.

Having said all that, the bundling for me is a disadvantage as my own code changes more than 3rd party libs and they are cached. I'm less fussed with types and a lot of the tests and env stuff can be done with a single-file express server for development.

The main advantage for me is that a buildless app will still work correctly in 6 months- permacomputing considerations.

alexisread··on Lit: a library for building fast, lightweight web components
Thought I'd add an example:

https://github.com/SaleCar/Quasar-UMD-Template

You can do sophisticated things as well eg. Stream half a million Kafka records into the browser- anything available from unpkg or other cdns.

A good cdn UI lib turns out to be https://quasar.dev/

alexisread··on Blacksky grew to millions of users without spending a dollar
Decentralised here means keeping companies honest by avoiding lock-in. It's fine to have the centralisation if it's easy to switch. BlackSky users don't need to care about the details, but if they don't like the community they can move their data elsewhere. Try doing that with Instagram.
alexisread··on [dead]
I understand that the word famine has a specific meaning in this context, but I fear that the cause of this famine will again be swept under the rug, that is the deliberate starvation of civilians by Israel, as opposed to say drought. This is entirely preventable.
alexisread··on UK government states that 'safety' act is about influence over public discourse
For the most part I'd agree, but the Iraq war had a million people (1/60th of the country) who made the effort to protest in London (http://news.bbc.co.uk/1/hi/uk/2765041.stm), and similarly every month supporting Palestine (150K-800K).

The legal mechanisms in place don't appear to be adequate as when that number of activists are ignored. Certainly in parallel with the online regulation, the legal right to protest has been restricted by the previous Tory government, and this current one.

What's also concerning is the lack of oversight with MPs, they follow guidelines, which seem to let them off from regular laws (https://www.bbc.co.uk/news/uk-politics-68503255 using taxpayers money in a private dispute- fraud) (https://www.bbc.co.uk/news/uk-politics-68841840 reads like fiction).

Why MPs are not FCA regulated is beyond me, corruption should be stamped out.

alexisread··on Ashet Home Computer
Well the most well known one is Geos for the C64

https://youtu.be/_4nthOx8sA4?si=AiK9bRxRQwV3MB0f

There's also this Atari homebrew

https://youtu.be/T14dL9MeMHE?si=cGtsZGWILYi4jcql

And yes the IIGS had one

https://youtu.be/YvVFTpukAp0?si=UtvV3N_pKhxU-Tyb

alexisread··on Online Safety Act: What went wrong?
It's mostly deliberate. Current petition to revoke it has half a million signatures, and the government have stated they will ignore that.

Censorship is one of the advantages they like: https://freespeechunion.org/protest-footage-blocked-as-onlin...

alexisread··on ‘No Other Land’ consultant Awdah Hathaleen killed by Israeli settler
I agree there is a significant number opposed, given the protest sizes in Tel Aviv, but it is far from the majority.

https://www.middleeasteye.net/news/majority-israelis-support...

Given Israeli education, support for settlers, the immigration policy which allows anyone with Jewish heritage to claim land there (regardless of any connection to the area, and of any outstanding arrest warrants) and Israelis using their kids to stop aid trucks and so on, there's a lot needed to show the majority what is actually humane and acceptable.

alexisread··on ‘No Other Land’ consultant Awdah Hathaleen killed by Israeli settler
Usually but not actually. Northern Ireland is a good example where if people are well-off enough, you can diffuse tensions. Many thanks to Brexit for stirring this up more recently, and having different US tariffs across the border will be interesting, but it's still a valid data point.
← PreviousPage 2 of 14Next →