News for hackers. Stuff that matters.

graham_king_3

Re:Evaluating LLMs for my personal use case on Monday August 25, 2025 @08:13PM (#45020760)
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.
Re:Evaluating LLMs for my personal use case on Monday August 25, 2025 @08:08PM (#45020722)
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.

Good point, thank you! I added `repr(C)`.
Re:Linux: What Can You Epoll? on Sunday October 23, 2022 @04:49PM (#33310133)
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.
Re:Linux: What Can You Epoll? on Sunday October 23, 2022 @04:40PM (#33310060)
Thanks for starting a very interesting thread. I re-wrote part of that section based on all the feedback.
Re:Linux: What Can You Epoll? on Sunday October 23, 2022 @04:35PM (#33310025)
Fixed, thank you.
Re:Why I don't touch crypto on Thursday July 11, 2013 @01:01PM (#6027341)
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.

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?

Re:Linode vs. DigitalOcean – performance benchmarks on Tuesday February 12, 2013 @01:08PM (#5208389)
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.

Re:The Conscience of a Hacker on Monday January 14, 2013 @01:21PM (#5055799)
HN needs a "pin" feature, so this can be top all the time.
Re:I want the world to scroll this way on Friday January 11, 2013 @01:15PM (#5044059)
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.

Re:Humble eBook Bundle on Tuesday October 09, 2012 @04:46PM (#4633850)
On an unrelated note, that site uses SPDY (looks like it's on app engine or apps for your domain).
You can already get a 7" android 4.0 tablet off aliexpress.com for $53, shipping included.
Re:Simple Password Encrypted Files w/ GnuPG on Wednesday August 29, 2012 @08:16PM (#4452182)
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

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 :-)

Re:Introducing The New IFTTT on Wednesday June 20, 2012 @11:54AM (#4137544)
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.

Re:Why Android should switch to Go on Tuesday May 15, 2012 @02:10PM (#3977888)
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.

Re:Show HN: Ginger: Better Team Discussions on Thursday April 19, 2012 @02:40PM (#3864456)
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.

Re:In-memory key-value store in C, Go and Python on Saturday March 24, 2012 @08:33PM (#3751285)
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.

Re:In-memory key-value store in C, Go and Python on Friday March 23, 2012 @04:04PM (#3746960)
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...

Re:The antidepressant reboxetine: A headdesk moment in science on Thursday January 13, 2011 @02:45AM (#2099161)
> 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

Re:Enter Mouseless on Monday July 05, 2010 @02:47PM (#1488812)
Click-and-drag might be a challenge.
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.