News for hackers. Stuff that matters.

peterhull90

Re:The Benchmarkpocalypse on Tuesday August 18, 2026 @09:36AM (#49345459)
Can anyone explain (or link to an article which explains) why telling Claude things like not to cheat or that there is a holdout set makes the output better? People say that an LLM is just a statistical next token predictor. I've read the article by Stephen Wolfram [0] on this, which makes sense to me, but then I can't see how 'more complex' behavior like cheating or not cheating can arise.

[0] : https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-...

Re:Floating points between zero and one on Thursday August 29, 2024 @12:02PM (#41392225)
In the HN comment that the article discusses [0] is the conclusion that commenter a1369209993 is correct (there are as many between 0 & 1 as 1 & +INF) and llm_trw is not correct? I got a bit confused.

Also, the article links to a blog by Daniel Lemire [1] in which he says (with regard to producing an unbiased random float) "picking an integer in [0,2^32) at random and dividing it by 2^32, was equivalent to picking a number at random in [0,1)" is incorrect and there is a ratio of up to 257:1 in the distribution so obtained. Not wanting to disagree with Daniel Lemire but I can't see why, and a quick experiment in Python didn't give this ratio.

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

[1]: https://lemire.me/blog/2017/02/28/how-many-floating-point-nu...

Re:Understanding a Python Closure Oddity on Monday June 17, 2024 @10:43AM (#40706103)
You can put an extra 'level' in, to make both options return the same 0,1...9

    def loop():
        for number in range(10):

            def outer(n):
                def inner():
                    return n

                return inner

            yield outer(number)
Is there a neater way?
Re:The Elusive Byzantine Empire (2019) on Friday May 31, 2024 @09:14AM (#40534741)
Currently reading "Byzantium: The Surprising Life of a Medieval Empire" by Judith Herrin[0]

It's very interesting, a sort of missing piece of history from my point of view. At school those centuries was just skipped as 'the dark ages.'

[0]: https://en.wikipedia.org/wiki/Judith_Herrin

Re:Ping Ff02:1 on Tuesday May 28, 2024 @03:05PM (#40504305)
It may be different on newer MacOS but on mine you will need ping6

> ping6 ff02::1%en1

for example.

I wasn't able to get it to work on Windows (I can get the command to work in WSL but it seems to sit alone in an internal network). Any advice welcome.

When I started my first job in 1995, the old hands were still using DEC ALL-IN-1 [0] from terminals on their desks but it was in the process of being phased out (for Microsoft Mail or something on Windows for Workgroups), so I never got to use it myself.

[0]: https://en.wikipedia.org/wiki/ALL-IN-1

Re:Goto on Tuesday April 16, 2024 @06:11AM (#40050255)
In my youth I had a ZX spectrum which had BASIC with line numbers and no renumber command. Sometimes when adding code I'd simply run out of line numbers so had to GO TO an unused block of line numbers, put the new code there and GO TO just after the original code. I've never quite recovered from that.
Re:Bzip2 Format Specification [pdf] on Wednesday April 10, 2024 @10:38AM (#39991202)
It's a consequence of being block-based as mentioned elsewhere, but interesting to note that cat'ing together bzip2 files gives a valid bzip2 file. That's the basis of pbzip2 [0] - it breaks the input file into chunks of 900K by default, compresses each chunk and then concatenates the compressed chunks. The individual chunks can be compressed in parallel if hardware allows.

[0]: https://man.freebsd.org/cgi/man.cgi?query=pbzip2&apropos=0&s...

Re:Nikon to acquire RED on Thursday March 07, 2024 @03:36AM (#39626621)
A role reversal from the 1930's - the first Canon cameras used Nikkor lenses!

https://www.mir.com.my/rb/photography/companies/nikon/htmls/...

Re:Dada, an Experiement by the Creators of Rust on Wednesday March 06, 2024 @08:48AM (#39615928)
Also Brian Anderson (brson) was/is a significant rust contributor
Re:VirtualBox KVM Public Release on Thursday February 08, 2024 @08:17AM (#39301587)
And could one swap between the two backends with the same VM image (.vbox +.vdi) to see which one gave the better performance?
Re:How Programming Languages Got Their Names on Thursday February 08, 2024 @05:23AM (#39300332)
'Go' was named because "it's short, easy to type"[0] though I assume it being part of Google was also a contributing factor?

[0]:https://commandcenter.blogspot.com/2017/09/go-ten-years-and-...

Re:Pandoc on Friday February 02, 2024 @08:57AM (#39228547)
Might depend on what kind of book it is - do you have a lot of images, tables, cross-references, ... or is it mostly plain text?
Re:Wind River Linux on Monday January 22, 2024 @04:37AM (#39087825)
There is such a thing[0] - at one time I was using both and it made my poor head spin a bit.

[0]: https://jungo.com/windriver/

Re:Support HTTP over Unix domain sockets on Tuesday November 28, 2023 @04:16AM (#38443915)
I didn't know that, thanks. If this is news to anyone else - in the "What's next?" section of the article it mentions interop between Win32 and WSL using AF_UNIX sockets, which became possible in a later update[0]

[0]: https://devblogs.microsoft.com/commandline/windowswsl-intero...

Re:Support HTTP over Unix domain sockets on Monday November 27, 2023 @09:43AM (#38432757)
I personally would like to see it but I think there would need to be a solution for Windows too, since that is nearly 70% of desktop OS use vs. 20% for MacOS and 3% for Linux.[0] Otherwise it would be a lot of work for the benefit.

[0]: https://gs.statcounter.com/os-market-share/desktop/worldwide...

Re:Three chips in and Google Tensor is on life support on Thursday November 23, 2023 @05:39AM (#38391378)
Can anyone just clarify for me what these AI / Machine learning chips are? As far as I can tell they are general purpose microprocessors with some added instructions which accelerate operations that are commonly used (matrix multiplication possibly?) but there's a lot I don't quite understand because some of the info is marketing and some of it it heavy technical stuff and my knowledge falls in between!
Re:Running Windows 98 on the Browser on Wednesday November 22, 2023 @08:32AM (#38378872)
Bravo! Was there anyone used the 'Briefcase' back in the day? I'd forgotten about that.

In fact I got so in the zone that I pressed ALT-F4 to close Win98 notepad and shut down my whole web browser instead!

> Popovertarget passes every choice made by the player, for example: x1-o2-x3 means X chooses the first position, O chooses the second and X chooses the third, and so on.

I think this is going to lead to a lot of redundant states, isn't it, because there are multiple paths to get to a particular board layout?

To quote the paper - "The reflection operator produces a reflection value from a grammatical construct (its operand)" [0]

[0]: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p29...

Re:Legendary Semiconductor Physicist Simon Sze is no more on Wednesday November 08, 2023 @04:53AM (#38188423)
"Physics of Semiconductor Devices" was a very useful and clearly-written book I read in the 90s - I must still have my copy somewhere. I didn't know the author had made such groundbreaking discoveries.
Re:Bookworm – the new version of Raspberry Pi OS on Wednesday October 11, 2023 @11:02AM (#37845334)
I've been using X to view graphical applications running on the Pi from my desktop - will this still be possible?
Re:C++Builder 11 Community Edition on Friday September 15, 2023 @09:11AM (#37522392)
Borland C++ is a 32-bit compiler, I believe the latest version is 5.5 and it came out in about 2000.

There is a newer version from Embarcadero, 7.20 from 2016[1].

The compiler in C++Builder is more modern and it will target 64-bit for Windows at least.[0]

[0]: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/C%2B...

[1]: https://www.embarcadero.com/free-tools/ccompiler

Re:Delphi 11 Community Edition on Friday September 15, 2023 @05:49AM (#37520625)
So if your revenue (not profit) exceeds $5000, you need to pay $5600 for Delphi. Surely that can't be right?

[edit] I can only get the prices in GBP but for 'professional' it's £1,140 (Perpetual License) + £399 (Year one Maintenance) so not quite as bad as I thought but still a sizeable portion for year 1.

Does anyone know why they picked frequencies quite close together for the in/out tones (2525Hz/2475Hz) when the pass band for telephony was much wider?
Re:Open Dylan's Call for Help on Wednesday January 29, 2014 @06:57AM (#7143306)
In the mid-90s I did some playing round with something called MINDY from Carnegie Mellon. It was (IIRC) a Dylan interpreter (the acronym was 'MINDY Is Not Dylan Yet') and was very interesting both to experiment with Dylan and also to see how MINDY itself was implemented. As I remember, a cool thing about the Dylan concept was that it had a sliding scale of dynamic-ness - in other words you could start off being quite relaxed about types but, where needed, you could narrow down the types, seal generic methods etc. and the compiler would then be able to optimise better, for example by avoiding dynamic dispatch if it could prove it knew the specific method at compile time.