News for hackers. Stuff that matters.

lyxell

Re:Show HN: Hop – JSX for Rust on Tuesday June 02, 2026 @02:57PM (#48374613)
The GitHub repo is at https://github.com/hoplang/hop

I published it today! :)

Re:GPT-5 on Thursday August 07, 2025 @01:28PM (#44827502)
”I think GPT-5 is the closest to AGI we’ve ever been”

Sorry, but this sounds like overly sensational marketing speak and just leaves a bad taste in the mouth for me.

Re:Writing your Clojure tests in EDN files on Monday July 21, 2025 @04:12PM (#44639905)
I like to use txtar files for snapshot testing. I let one of the file fields contain the expected output and one or more contain the input(s). Most mainstream languages already have txtar parsers so this approach makes it trivial to port an entire test suite across languages.

See https://docs.rs/txtar/latest/txtar/ for an example

Re:Show HN: I wrote a Java decompiler in pure C language on Tuesday June 03, 2025 @09:10AM (#44169659)
To some people the process leading to a finished project is the most interesting thing about posts like these.
Re:"Rules" that terminal programs follow on Thursday December 12, 2024 @04:45PM (#42403733)
I’d like to add: Programs should not add files to your home directory and should respect XDG_CONFIG_HOME and friends.
Re:Advent of Code 2024 on Thursday December 05, 2024 @09:20AM (#42328457)
Awesome! Thanks for sharing. It feels good to have some company in this, I will follow your progress!

I created a repo for my solutions here: https://github.com/lyxell/aoc2024-sqlite

Update: Wow. Reading your solutions was a real eye-opener for me. It never struck me that one can exploit the fact that unmaterialized CTE's will not be evaluated for rows that is not needed by another SELECT and one can use this the same way one uses laziness in Haskell. This is great stuff, thanks again for sharing!

Re:Advent of Code 2024 on Monday December 02, 2024 @03:10AM (#42294129)
I’m allowing myself to convert the data to a csv and read it using ’.mode csv’.

I realized when solving todays problem that SQLite’s

  json_each("[" || T.c1 || "]")
Is useful for parsing comma separated rows into (row, col)-pairs as well.
Re:Advent of Code 2024 on Sunday December 01, 2024 @09:13AM (#42288543)
I’m using sqlite this year. Hoping that there won’t be any computational geometry or trie problems. Kind of hoping for a graph problem solvable with recursive CTEs, that would be cool.

Show HN: font.delivery – A webfont download service

https://github.com/sfhorg/font.delivery

Hey HN!I built a service that lets you download WOFF2 fonts together with the CSS needed to host the fonts on your website.I built this since I needed it for another project I'm working on. I thought that it might be useful for someone else so I'm posting it here.The README is a bit sparse right now, but if you have any technical questions I'm happy to answer them.

( Read More... | no comments | on HN )
Re:Show HN: Rill – Composable concurrency toolkit for Go on Monday November 25, 2024 @11:19AM (#42237474)
The API looks really nice and intuitive! What motivated you to build this?
Re:SQLite Index Visualization on Friday November 15, 2024 @09:46AM (#42147378)
> It actually uses rowid even if you have a primary key.

This is true with one exception, if you create an INTEGER PRIMARY KEY, SQLite will use this instead [1].

[1]: https://sqlite.org/rowidtable.html

Re:Migrating from Create React App to Vite on Thursday October 17, 2024 @08:28AM (#41869019)
I’ve used both standalone esbuild as well as Vite for hundreds of hours and HMR works flawlessly in React using Vite, it’s the only reason I use Vite instead of just using esbuild directly. I suggest you to try it out.
Re:Migrating from Create React App to Vite on Thursday October 17, 2024 @08:25AM (#41868994)
I can’t speak for how it works in other frameworks but HMR for React works flawlessly in Vite.
Re:Migrating from Create React App to Vite on Thursday October 17, 2024 @04:29AM (#41867550)
With Vite you do not have to hack together Hot Module Reloading yourself.
Re:Going Buildless on Sunday September 08, 2024 @01:09PM (#41481568)
I guess you mean relying only on type inference? That will only get you so far. E.g. function parameters for freestanding functions would still be untyped. For those to be typed you need TypeScript or JSDoc annotations as OP noted.
Re:My deployment platform is a shell script on Wednesday April 10, 2024 @06:26AM (#39989088)
Related: https://github.com/containrrr/watchtower

Polls a docker registry and automatically restarts the container with the same flags that it was started with using the latest image.

Re:Ask HN: What non-AI products are you working on? on Tuesday March 26, 2024 @01:20PM (#39830407)
Custom forms with support for triggering actions is definitely on the roadmap. I'm not sure where I stand on the possibility to add a fully fledged plugin system. I've been looking at the possible scripting environments that are easy to integrate/execute in Go, there's a few JS-interpreters for example. But it would be quite a task to make the UX good in the case of runtime errors etc.

It was a while since I had a look on how the plugin system works in Wordpress. I should read up on that. Thanks for the feedback!

Re:Ask HN: What non-AI products are you working on? on Tuesday March 26, 2024 @01:12PM (#39830317)
What plugins would you want? My hope is to support most use cases for WP-plugins with built-in functionality.
Re:Ask HN: What non-AI products are you working on? on Tuesday March 26, 2024 @01:07PM (#39830253)
I'm working on a Wordpress-replacement written in Go, distributed as a single static binary with SQLite/Postgres for db and Disk/S3/GCS for storage.
Isn't it a bit more complicated than that if you, like Sourceforge, also host Git repos over SSH?
This is a great recommendation. It is worth noting that unlike Docker, crane is root- and daemonless which makes it work great in Nix (it's called 'crane' in the Nix repository). This allows for Nix to be used to manage dependencies for both building (e.g. Go) as well as packaging and deploying (e.g. gnu tar, crane).
Re:The best way to get unstuck on Monday January 08, 2024 @10:18PM (#38921846)
I immediately thought of this book too. For the comment section readers: The War of Art is a book about Pressfields idea of 'resistance', a force the artist/maker must overcome in just about any important (to them) creative endeavour.
Re:Gokrazy – Go Appliances on Tuesday December 19, 2023 @02:42AM (#38692933)
The showcase of projects is (a bit unintuitively) listed under Available packages and is helpful if you want to get a picture of what you can build on top of gokrazy: https://gokrazy.org/packages/showcase/
Re:Counterfactuals are not causality on Tuesday July 27, 2021 @08:58AM (#27971846)
I think it is hard to answer this without reducing the real world into something it may not be. What constitutes an event in the real world? Is the universe discrete or continuous? Do we really use mathematics to describe nature, or do we use it to model and approximate some properties of it?
C++23 is the current most likely long-term replacement for C++.
Re:Bret Victor: Learnable Programming (2012) on Wednesday July 14, 2021 @02:22PM (#27836452)
I looked it up. The main reason that I'm excluded from the audience is not due to Borland but rather that I don't have Microsoft Windows as my operating system.
Re:Warp: Fast, Rust-based terminal (waiting list) on Wednesday July 14, 2021 @01:14PM (#27835528)
What about the UI framework druid? It has 3.9k stars on Github and is under active development.

https://github.com/linebender/druid

Re:Beating TimSort at Merging on Tuesday July 13, 2021 @01:44PM (#27823832)
Interesting read. This post seems to be written by Adam Gordon Bell who is also the host of the excellect CoRecursive podcast. Recently featured at HN in The Untold Story of SQLite [0].

[0]: https://news.ycombinator.com/item?id=27718701

Older »