HNHacker News
TopNewBestAskShowJobs

AlexErrant

1,060 karma · joined November 15, 2022

Building collaborative spaced repetition at https://github.com/AlexErrant/Pentive
submissionscomments
AlexErrant··on Why don't we use awnings anymore (2022)
The "Technology Connections" youtube channel recently discussed awnings too. (And it had more or less the same message as this blog.)

https://www.youtube.com/watch?v=uhbDfi7Ee7k

AlexErrant··on Hyprland 0.44
> Linux is exactly the way you want it to be out of the box.

...which explains why there are a million and one distros? Also did you miss my comment where I said I never owned a Mac???

AlexErrant··on Hyprland 0.44
Yeah - I understand GP's point. It was just too good an opportunity to meme :)
AlexErrant··on Hyprland 0.44
Let's be honest, very little is "built-in" on Linux. What you guys are referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
AlexErrant··on Hyprland 0.44
I give more details here https://news.ycombinator.com/item?id=41762128
AlexErrant··on Hyprland 0.44
I've never owned a Mac.
AlexErrant··on Hyprland 0.44
My "Dude, the point is..." response applies here.

Also, I do contribute to open source - my github says I've contributed to 53 repos. But that's irrelevant - I should be able to criticize open source software without the response being "lol how about you fix it", because in that case every issue on Github can be closed with the response "how about you submit PR".

AlexErrant··on Hyprland 0.44
Dude, the point is

> "I try to replace my Macbook with a different laptop and linux. But the "finish" that the Apple products have is unmatched."

Having to install three programs and a language runtime AND ALSO configure them, and have one of the programs be a fork because you want "instant" feedback while changing volume (instead of having to wait until the end of the scroll) is absurd. It isn't simply "lol install 3 programs and it Just Works" - getting everything to interface with each other and then scripting everything up is a chore.

It's a bloody shame that something this time-consuming is necessary for something that comes out of the box in other mainstream OSes.

But of course your comment history is mostly one line zingers so why do I bother.

AlexErrant··on Hyprland 0.44
> and linux

Uhh... not all linux distros. I speak from direct experience with the latest Nix and Ubuntu as of literally yesterday. There's a reason why I know it takes 3 programs to get volume gestures working.

AlexErrant··on Yoshua Bengio: Humanity faces a 'catastrophic' future if we don't regulate AI
> The solution is a middle ground, where we talk to the Chinese and we come to an understanding that's in our mutual interest in avoiding major catastrophes. We sign treaties and we work on verification technologies so we can trust each other that we're not doing anything dangerous.

Veritasium has a video on how developing the fast fourier transform a few years earlier may have prevented the nuclear arms race between the US and the Soviets (by allowing independent verification of how many nuclear tests were done.) https://www.youtube.com/watch?v=nmgFG7PUHfo

What technology can monitor the development of AI in a foreign country?

AlexErrant··on Web components are okay
Ryan builds out Solid's reactivity system (createSignal) from scratch in about 20 minutes, live, in this video https://youtu.be/N-Y32BqhoYQ?t=1100

I haven't bothered fully grokking it because I've never had to understand the impl details. Solid gives me literal dom elements, and that's low-level enough for me.

AlexErrant··on Show HN: An expression parser supporting multiple types
Shameless self-plug of my own expression language supporting multiple types: https://github.com/AlexErrant/Pentive/blob/main/shared-dom/s...

It's a Lezer grammar using the Github search syntax style. Currently undocumented, but the autocomplete/syntax highlighting (thanks to Lezer) is pretty good. It can handle search strings like this:

    created<2024-09-24 foo -bar spider-man "wildcard*" ```literal"'`quotes``` (a b "quoted string") (c OR d OR `lit'eral`) -(x y OR z) (tag:mytag,'your tag') state:normal (arbitrary (nesting (edited<2024-09-23 OR created=2024-09-17))) /regex/si due=true tagCount=0 field:"user input field name":/lol regex/ui
AlexErrant··on JavaScript dates are about to be fixed
"about to be fixed" is pretty clickbaity with no substance.

From the July TC39 meeting [0]:

> After 7 years, Temporal is close to done. Our only focus is making sure in-progress implementations are successful, by fixing corner-case bugs found by implementors, and making editorial changes to improve clarity and simplicity.

It's not (yet) on the October TC39 agenda [1].

The Chromium implementation issue hasn't been updated since 2022. [2]

Webkit's implementation issue was updated once this year... to add a blocker [3]

V8 is passing 75% of test262's tests, and JavascriptCore is passing 41%. Spidermonkey is a no-show. [4] Note that test262 is incomplete and hasn't seen activity this year [5], so those percentages may decrease over time.

"about to be fixed" ehhhh. If it lands this year I'd be surprised.

   [0] https://ptomato.name/talks/tc39-2024-07/#2
   [1] https://github.com/tc39/agendas/blob/main/2024/10.md
   [2] https://chromestatus.com/feature/5668291307634688
   [3] https://bugs.webkit.org/show_activity.cgi?id=223166
   [4] https://test262.fyi/#|v8,v8_exp,jsc,jsc_exp,sm,sm_exp
   [5] https://github.com/tc39/test262/issues/3002
AlexErrant··on Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync
FYI Turso does it with WASM https://turso.tech/blog/webassembly-functions-for-your-sqlit...
AlexErrant··on Leaving Neovim for Zed
...you just made me realize I know (some of) the differences between JS and .NET regexp, in addition to vim and PCRE.

Profanity.

AlexErrant··on Leaving Neovim for Zed
I die inside whenever I use `\<` and `\>` for word boundary regex. Neovim has no plans to change this either. I'll likely switch eventually so I don't have to know two flavors of regex. One is hard enough.
AlexErrant··on Show HN: Wikipedia Browser a La Andy Matuschak's Evergreen Notes
Golden layout's unfortunately somewhat abandoned.

I like the look of https://github.com/mathuo/dockview

AlexErrant··on Show HN: Wikipedia Browser a La Andy Matuschak's Evergreen Notes
https://github.com/deathau/sliding-panes-obsidian
AlexErrant··on Show HN: Wikipedia Browser a La Andy Matuschak's Evergreen Notes
I wonder if this-view-but-for-browser-tabs would be useful.

E.g. instead of opening 4 google search links as tabs, you could just open one "to the side" and quickly go to the next link if it turns out to be SEO spam (and avoid a click to close-tab or back-buton).

AlexErrant··on Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync
Well, Sqlite is battle-tested to hell and back... and with PGlite I managed to get a `memory access out of bounds` in less than 3min of playing around. So perhaps maybe not prod-ready yet, even if it's bigger brother is one of the most solid DBs. (To be fair I've also seen & experienced issues with SQLite - no software is bug-free.)
AlexErrant··on Postgres.new: In-browser Postgres with an AI interface
(So uh, just to clarify for posterity, when I originally made this comment it was just a link to https://postgres.new/ without any description, and kiwicopple's comment was just a link to another comment of his on a related post. Obviously now there are more words, everywhere, explaining everything.)

(I still hate LLMs in my DB. I KNOW SQL LET ME WRITE IT.)

AlexErrant··on Postgres.new: In-browser Postgres with an AI interface
Hey my guy, just letting you know that I'm pretty excited about the whole PGLite project (sorry if my comments above sounded overly negative >_>, managing expectations and all).
AlexErrant··on Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync
Maybe they're talking about https://www.sqlite.org/appfunc.html where you can define a window fn in the (perhaps JS) app via `sqlite3_create_window_function()`.
AlexErrant··on Postgres.new: In-browser Postgres with an AI interface
Yeah perhaps I came in with the wrong expectations. The ui/url made me expect a postgre playground, when instead I got this. Perhaps Postgres.ai?

Also... the page title is "Postgres Sandbox". This is, at best, misleading.

AlexErrant··on Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync
ack
AlexErrant··on Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync
Answered here https://news.ycombinator.com/item?id=41224295

> You might remember an earlier WASM build[1] that was around ~30MB. The Electric team [2] have gone one step further and created a complete build of Postgres that’s under 3MB.

> Their implementation is technically interesting. Postgres is normally multi-process - each client connection is handed to a child process by the postmaster process. In WASM there’s limited/no support for process forking and threads. Fortunately, Postgres has a relatively unknown built-in “single user mode” [3] primarily designed for bootstrapping a new database and disaster recovery. Single-user mode only supports a minimal cancel REPL, so PGlite adds wire-protocol support which enables parametrised queries etc.

AlexErrant··on Postgres.new: In-browser Postgres with an AI interface
Clicking "New database" doesn't do anything for me...? No changes in the UI, and no messages in the console. Admittedly I'm not signed in with Github, but isn't that only for the AI thing (that really I don't want to use).

Edit: Okay reading kiwicopple's comment makes it clearer that chatGPT is not-optional. I'm... not enthused by this. Why would you take something that's local-first and gatekeep it with something as useless as an AI-for-your-db?

https://pglite.dev/repl/ is available as a more barebones browser-pglite playground.

AlexErrant··on Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync
Bug report? On https://pglite.dev/repl/ running `SELECT 'a fat cat sat on a mat and ate a fat rat'::tsvector @@ 'cat & rat'::tsquery;` works, which is cool.

However, running `SELECT to_tsvector('fat cats ate fat rats') @@ to_tsquery('fat & rat');` fails with `y is not a function`. Then trying to run the first query yields `null`, which is weird. I can open an issue if you want :)

AlexErrant··on Why Is the EdTech Industry So Damn Soft?
This was written with regard to academic education, but it's interesting when viewed from developer education.

I think Pluralsight had pretty good quality content for devs. Yet "Vista Equity Partners has written off the entire equity value of its investment in tech learning platform Pluralsight, three years after taking it private" https://www.axios.com/2024/05/31/vista-equity-pluralsight

> You know what happens when someone pays you a nontrivial sum of money? They hold you accountable for results.

Did Pluralsight not deliver results? Or are there other forces at play, e.g. devEd is distinct from academicEd? (Genuine question, no subtext here.)

AlexErrant··on The protein Reelin keeps popping up in brains that resist aging and Alzheimer’s
I agree, but the pedant in me wants to point out that

> despite a century of throwing every possible thing at them without holding back

is incorrect. IACUCs exist for a reason. We do hold back.

← PreviousPage 6 of 11Next →