Better HN
topnewbestaskshowjobs
Log inSign up

panzi

1,119 karma · joined Aug 30, 2013 (13y ago) · 788 submissions

https://github.com/panzi/
Submissions

comment 11h ago · link · parent

I don't think using a statistical model to solve a very mechanical problem is the best use of resources.

comment 2w ago · link · parent

Sounds to me like the market isn't big enough for both of them. So how much growth is left?

comment 2w ago · link · parent

Be aware of the license. You can only use it in GPLv3 programs.

comment 2w ago · link · parent

Indeed. Let's keep NULL.

comment 2w ago · link · parent

Personally I think there was nothing wrong with returning NULL. "But if people don't check for it it crashes their programs!" Good! Let it crash loudly! Then they notice and fix the issue.

Also I think it could have returned ":". Given the file format of /etc/shadow and /etc/passwd I don't think it's possible to have a : as a value for anything.

comment 3w ago · link · parent

Why also capacity?

What I think would make sense is a change to the C API where the error code is an out parameter and not that ugly thread local errno. But I guess that's not big enough of an issue for people/languages that use libc as system call interface.

comment 1mo ago · link · parent

Getting Bad Gateway.

comment 1mo ago · link · parent

Compilers often just build up more and more data structures in memory until the end when they then release everything more or less at once. With an arena you can then just throw away the whole arena at the end, assuming there are no resource handles that need to be closed in drop().

A long time ago I read an article about someone speeding up a C++ compiler that is itself written in C++ (was it g++? maybe clang?). They simply patched out delete so it did nothing. The compiler used marginally more memory but ran much faster, since releasing all the small objects one by one is just useless work at the end of the compilation.

A GCed language has a similar behavior and could therefore be fast in that case. It just builds up all the objects and then when the program exists it doesn't have to GC them all, it just throws away the whole process memory. So I can imagine one could "optimize" a compiler written in a GCed language by deactivating the GC.

comment 1mo ago · link · parent

I wonder how fast "Doom in TypeScript" runs in tsrs now. XD

comment 1mo ago · link · parent

Getting 403 for this.

comment 1mo ago · link · parent

Hm, does document.write("...") still exist?

comment 1mo ago · link · parent

Interesting!

We're currently use pgvectorscale. Some questions:

- Will pg_vectorsearch eventually also support vectors bigger than 1968 dimensions? E.g. VoyageAI can create embeddings with 2048 dimensions (but we don't actually need that at the moment, only 1024).

- Why did you choose C this time and not Rust, as you did with pgvectorscale?

- Why did you not just extend pgvectorscale with another index type instead of creating a whole new extensions?

comment 1mo ago · link · parent

I expected it to also talk about ~username. See e.g.: echo ~root ~pulse ~sddm

comment 1mo ago · link · parent

What about that makes it sound like AI? I can't detect it. My native language isn't English, though.

comment 1mo ago · link · parent

8.8 million people? Wikipedia says Denmark only has 6 million people! Historical data too? People from other countries that had any treatment in Denmark?

comment 1mo ago · link · parent

I think the claim is that GCC supports a few obscure platforms that LLVM doesn't. Don't ask me which, that is just the claim that I heard multiple times. So it's not Rust that limits platforms, but LLVM. And they say the GCC backend efforts of Rust are meant to deal with that.

comment 1mo ago · link · parent

Sure, I still find it fascinating.

comment 1mo ago · link · parent

That's more than 4 times the size of Super Mario World, I believe. Always fascinating how little is done with so much these days.

comment 2mo ago · link · parent

Black Mirror episode 2, IIRC.

comment 2mo ago · link · parent

For me:

> 503 Service Unavailable

comment 2mo ago · link · parent

I think the "avoid people" part does a lot of work. For a lack of a better word, AI generated people still look soulless.

comment 2mo ago · link · parent

Will this mean they yet again throw away their component library for Shopify apps and make everyone migrate AGAIN?

comment 2mo ago · link · parent

The article says LibreOffice is almost 20 years old. Well, before it was LibreOffice it was OpenOffice in 2000 and before it was OpenOffice it was StarOffice and StarWriter originates in 1985. So you could say it (or the Writer component) is 41 years old.

comment 3mo ago · link · parent

Even before I read this blog post only the way he behaved on The Standup made me suspicious, raised some red flags.

comment 3mo ago · link · parent

I'm so disappointed that The Standup was platforming him.

comment 3mo ago · link · parent

If I'd were 17 I'd choose a different career.

comment 3mo ago · link · parent

I'm not really against such special symbols, only if they are too much, like in Perl.

~ and @ weren't replaced by anything with ::, though, ~Foo is Box<Foo> and @Foo is Rc<Foo> (or is it Arc<Foo>?). :: to access a member of a module already existed when ~ and @ was in Rust.

comment 3mo ago · link · parent

Early Rust had ~ and @ references.

comment 3mo ago · link · parent

What's the public transport of software development? Where can I get good train service here?

comment 3mo ago · link · parent

Out of the things you mentioned I think the following make totally sense to be included in a language runtime like this:

JavaScript runtime (obviously), package manager, test runner for unit tests, bundler, JSX, SQLite bindings, formatter, linter, YAML and TOML parsers. Maaaaybe even a Markdown parser and HTML5 parser. Definitely JSON, CSV and XML parsers.

I.e. similar to Python. Though Python is a bit of an incoherent mess. If you have all these you need them to be coherent.

12345
27