HNHacker News
TopNewBestAskShowJobs

graham_king_3

64 karma · joined April 11, 2010

http://darkcoding.net
submissionscomments
graham_king_3··on Evaluating LLMs for my personal use case
They released deepseek/deepseek-chat-v3.1 shortly after I did the evals, and that's what I now use 20+ times a day for all my questions. It replaces chat-v3 and r1, depending on whether you enable reasoning or not.
graham_king_3··on Evaluating LLMs for my personal use case
I'm the author of the post. Thanks for highlighting this. It's very confusing.

I cannot use it directly in OpenAI's API, even today:

> $ llm -m gpt-5-mini Hello

> Error: Error code: 400 - {'error': {'message': 'Your organization must be verified to stream this model. Please go to: https://platform.openai.com/settings/organization/general and click on Verify Organization. If you just verified, it can take up to 15 minutes for access to propagate.', 'type': 'invalid_request_error', 'param': 'stream', 'code': 'unsupported_value'}}

Until two days ago, OpenAI on OpenRouter was Bring-Your-Own-Key (BYOK), so it didn't work there either.

Since they dropped BYOK, I can indeed use it through OpenRouter:

> $ llm -m openrouter/openai/gpt-5-mini Hello

> Hi — hello! How can I help you today?

This is for both `gpt-5` and `gpt-5-mini`. The `-nano` has always worked. I'm going to try some of my evals on gpt-5-mini, but it doesn't feel like I can depend on it.

graham_king_3··on The memory remains: Permanent memory with systemd and a Rust allocator
Good point, thank you! I added `repr(C)`.
graham_king_3··on Linux: What Can You Epoll?
You can and they do. The article says:

    There are four epoll-able ways for processes or threads to communicate:
    - UNIX socket pairs: man socketpair.
graham_king_3··on Linux: What Can You Epoll?
Thanks for starting a very interesting thread. I re-wrote part of that section based on all the feedback.
graham_king_3··on Linux: What Can You Epoll?
Fixed, thank you.
graham_king_3··on Why I don't touch crypto
That attitude to crypto is pervasive, annoying, and wrong. We don't tolerate the "you're too stupid to use that" attitude in any other part of software development, and we shouldn't tolerate it in cryptography.

Every developer needs to touch crypto. Encrypted communications needs to be our default. And yes, of course, we should prefer verified, standard algorithms (NSA Suite B, for example).

It's OK to get it wrong, it's OK to fail forward, even with cryptography. ROT13 will protect you very well, if your attack vector is someone glancing over your shoulder for 1 second. As long as the code is open, and you're honest about what it does, you've made people a little bit safer.

There's a fair amount of gloating around Cryptocat, but it protected people's communications from me, because I didn't know how to break it. So that's better than nothing.

graham_king_3··on Show HN: EssenceApp.com – Daily digest of your Twitter VIPs
An excellent idea. Most of my Twitter consumption now happens from the news.me daily email. This sounds very similar.

Has anyone used both? How do they compare?

graham_king_3··on Linode vs. DigitalOcean – performance benchmarks
There might be better performing hosting providers, and there are definitely lower cost providers than Linode, but I don't love them like I love Linode.

It's not entirely rational, but if you ask around, I'd wager most people who use Linode love it.

Maybe it's because it used to be just caker doing everything, or the free disk / memory upgrades he kept handing out. I remember him asking about LASIK surgery in the (very helpful) forums; there's a family feeling to it. It's the anti-Rackspace. It's home.

graham_king_3··on The Conscience of a Hacker
HN needs a "pin" feature, so this can be top all the time.
graham_king_3··on I want the world to scroll this way
That's amazing. So much easier to read. I too, now want the world to scroll this way.

Hopefully this will trigger innovation in scrolling.

graham_king_3··on Humble eBook Bundle
On an unrelated note, that site uses SPDY (looks like it's on app engine or apps for your domain).
graham_king_3··on Google set to blow open the tablet market later this year with $99 Nexus tablet
You can already get a 7" android 4.0 tablet off aliexpress.com for $53, shipping included.
graham_king_3··on Simple Password Encrypted Files w/ GnuPG
Great idea. I have a little Python wrapper around that, which also copies the password to your buffer (so you never actually see it), and password generation.

https://github.com/grahamking/kip

graham_king_3··on Valid Credit Card Number Generator for Testing Purposes
Very nicely presented. My credit card page and code have been top search result for years - it's about time someone improved upon it! Thanks.

http://www.darkcoding.net/credit-card-numbers/ http://www.darkcoding.net/credit-card-generator/

If the code on darkcoding helped you build your project (we have the exact same card issuers), could you give attribution?

It would also be very cool if you open-sourced that site. The code on darkcoding is GPL, not AGPL, so you're not required to. Would still be cool of you :-)

graham_king_3··on Introducing The New IFTTT
People who know seem excited about this, so I spent two minutes following links. I still have no idea what ifttt is.

This would help:

- Change the tagline from "Put the Internet to work for you" to something more descriptive.

- Have a prominent "About" link on the blog. Write an About page, or better put some content on your home page.

graham_king_3··on Why Android should switch to Go
Brad Fitzpatrick, one of the core Go developers, used to work on Android.

There are regular discussions on the golang-nuts mailing list about Go on Android: https://groups.google.com/group/golang-nuts/search?q=android

I certainly hope for Go as a core Android language.

graham_king_3··on Show HN: Ginger: Better Team Discussions
I've been using Ginger for ~ 6 months (I work for Lincoln Loop), and it's appeal is difficult to describe.

It doesn't really _do_ anything, there's no clever features, yet as a team we've been having these intelligent thoughtful discussions since we started using it. Somehow those discussions just didn't happen with the other tools we tried.

graham_king_3··on In-memory key-value store in C, Go and Python
Yes, thank you! Adding this line to the two-writes Python version (memg-slow.py on github) makes it about as fast as the single write version (memg.py on github):

sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)

It's an interaction between delayed ACKS and the Nagle algorithm, mentioned on the Nagle algorithm wikipedia page.

I'm learning a lot this week. Thanks again.

graham_king_3··on In-memory key-value store in C, Go and Python
I'm the author of the original post. The difference has nothing to do with epoll, these comments are correct. Thanks particularly to codeape for his pull request which made me realise this. Sorry everyone. I will fix the post.

Reducing the number of send calls, in both the C and Python versions, makes them enormously faster. Go is already batching up the writes, hence the apparent speed advantage.

If you strace the client, you see that the "get" case was replying with two send calls, one for the "VALUE" line, another with the value and "END". All the time is consumed with the client waiting to receive that second message. Depending on the client, and I tried a bunch of ways, it's either in 'poll' (pylibmc), 'futex' (Go), or 'recv' (basic python socket). That second receive is about two orders of magnitude slower than the previous recv.

Why does reading that second line take so much longer?

There's more detail here: https://github.com/grahamking/Key-Value-Polyglot/pull/5#issu...

graham_king_3··on The antidepressant reboxetine: A headdesk moment in science
> Is it possible that lab conditions affect the psychology of the animal? (i.e. who won't be depressed spending your life in a cage)

Yes, although that view seems both controversial, and very poorly funded. The landmark experiment here was http://en.wikipedia.org/wiki/Rat_Park

graham_king_3··on Enter Mouseless
Click-and-drag might be a challenge.
graham_king_3··on Ask HN: What are the best free and pay web charting libraries?
Flot. JS / Canvas library, supports excanvas for IE. Good looking, straightforward.

http://code.google.com/p/flot/

I have been using it for a while in production, am happy with it.