News for hackers. Stuff that matters.

onre

The site has a headline about halfway down the page, which apparently gets machine-translated to the reader's assumed language, probably based on GeoIP as my browser is set to request pages in English. This doesn't work very well... the Finnish-language version of the headline makes very little sense, the second word reads as either a weird homophobic slur with a typo or just plain nonsense.
Re:Brunost: The Nynorsk Programming Language on Saturday April 18, 2026 @05:04AM (#47814377)
This is equal parts brilliant and demented. Thank you.

  syöte olkoon vakiosyöte

  yritä
    tee syötteen kullekin alkiolle:
      käsittele(alkio)
  paitsi poikkeustilanteessa liukulukuylivuoto:
    kirjoita(virhetulosteeseen, "liukulukuylivuoto")
  muutoin:
    kirjoita(virhetulosteeseen, "odottamaton poikkeus")
Re:Apple Debuts iPhone 17 on Tuesday September 09, 2025 @02:52PM (#45186832)
I'm typing this on a 6S Plus, and so far it seems like this'll do until iOS 15 patching stops.
Re:Just use `git` to manage your dotfiles on Sunday August 31, 2025 @06:30AM (#45082067)
Instead of ignoring everything, I've found it better to apply this setting instead:

  git config status.showuntrackedfiles no
Intake and exhaust manifold shapes affect the power and torque characteristics of the engine. Also, these are not cheap parts. Also a quick glance at the parts catalogue suggests that the example engine, BMW B48, has different pistons and connecting rods for different tune levels, suggesting that the cast engine block is one of the few components which are actually interchangeable between the versions. Didn't check, but I'd guess the turbocharger compressor and turbine wheels might be different, too.
For a moment I was really confused about this purported achievement of late Mary Stuart before my brain made the right connection.
As a Northern European (Finland) I can tell you that the electricity cost here for last year was closer to 0,1 € per kWh including the transfer fee and taxes. Additionally, more than 40 % of houses here have electric heating. The heating season starts in early autumn and ends in late spring, lasting 8 to 9 months depending on the year. As the electricity used by the device is turned into heat, during the heating season running it costs nothing.
I would most likely end up with something like this:

  CAT          CATalogue - output the contents of current directory
  RM           to Raster Memory - load contents of named file in framebuffer
  MV           Make Virtual - map the file into memory and output the address
  LS           Load System - attempt to reboot using the named file as the kernel
  CD           Create Directory - self-explanatory
  SH           System Halt - immediately stop all processing
...and so on.
Trains don't even notice that. Russian wagons with nominal gauge of 1520 mm are an everyday sight on the Finnish rail network, nominal gauge 1524 mm. And yes, regardless of sanctions.

https://vaunut.org/kuva/174390?tag0=24%7CVgobo%7C

Re:Ash (Almquist Shell) Variants on Saturday May 10, 2025 @08:42AM (#43945176)
Yes. The current state of things makes much more sense when one is aware of the background.
Re:.localhost Domains on Friday April 11, 2025 @04:44AM (#43651688)
Thanks, I always mix up mold and mildew. However, "arpa" is specifically a lottery ticket, whereas there are tickets for concerts, tickets to ride, tickets in Jira etc...
Re:.localhost Domains on Friday April 11, 2025 @01:49AM (#43650847)
> I have to say, .home.arpa doesn't exactly roll of the tongue like .internal.

In my native language (Finnish) it's even worse, or better, depending on personal preference - it translates directly to .mildew.lottery-ticket.

You might consider using this handy thing, also available as a binwalk module, for recognizing the ISA.

https://github.com/airbus-seclab/cpu_rec

Re:Yes, in the 1980s we downloaded games from the radio on Monday March 31, 2025 @04:37PM (#43539670)
I remember borrowing a book from the library, which had a type-in checksum program of this sort. It was done like was common for C=64 things of this kind - there's a BASIC FOR-loop iterating through a memory area, reading in bytes from DATA statements you've typed in and POKEing those bytes into memory, not completely unlike entering a program manually from the front-panel switches of an older computer.

So, after typing that in and probably SYSing (C=64 BASIC command for executing machine code from arbitrary memory location) to some address, it did print out a two-digit (eight-bit) hex checksum after every BASIC line I entered on the C=64 and the program listing in the book had the correct checksums for every line, so spotting errors was more or less instantaneous.

This stuff brings memories.

  FOR I=40960 TO 49152:POKE I,PEEK(I):NEXT I
  POKE 1,54
From top of my head; loop through the BASIC interpreter area, reading byte by byte with PEEK and POKEing those bytes back to the same addresses. Sounds nonsensical? Not so, because the C=64 does have full 64 kB of RAM, but some of it is overlapped by ROMs. What happens here is that you're reading from ROM but writes always go to RAM, so you're copying the BASIC interpreter from ROM to RAM. After that, the POKE statement turns off the ROM overlap and the interpreter is now run from RAM, so you can edit it live - and obviously cause all sorts of interesting crash situations.

It sure did help later with career in IT to have understood this kind of stuff at age of around ten.

Re:Hacker Laws on Sunday March 30, 2025 @10:50AM (#43524645)
I feel this is a side-effect of so many people getting "simple" wrong, as in, calling things simple because they superficially seem so, even while being aware of but ignoring the underlying complexities.
Re:Ask HN: What Are You Working On? (February 2025) on Monday February 24, 2025 @02:23AM (#43156690)
A no-frills X toolkit. Think Athena, add things like dialogs, file picker and make it completely vectored. No antialiasing, top goal is small size and fast execution. Can display vector and bitmap fonts, only external dependency is xcb. I just recently got my first digital storage oscilloscope and begun writing a companion software for it, as I couldn't find anything usable. This is one of the offshoots of that, the other being a somewhat Postscript-like language for scripting the thing.

Once I get this done, I get back to the actual project of a 2.11-BSD based handheld computing appliance.

Also there is this thing called "day job".

Does not reflect my experience at all. T420 from 2011 is still completely usable. Haven't clocked the boot-up time but definitely not minutes, more like a couple dozen seconds. Everything worked out of box with latest stable Debian. Can do 2560x1600 over the DP connector, too. This is not even a top-spec model but the slowest i5 available back then.
Re:Printf debugging is ok on Sunday January 05, 2025 @10:49PM (#42607474)
I've gotten an OS to run on a new platform with a debugging tool portfolio consisting of a handful of LEDs and a pushbutton. After getting to the point where I could printf() to the console felt like more than anyone could ever ask for.

Anecdote aside, it certainly doesn't hurt to be able to debug things without a debugger if it comes to that.

Re:Xerox to acquire Lexmark on Monday December 23, 2024 @10:13AM (#42494949)
I have the 122-key version and a ton of Emacs bindings to make the most out of the 24 function keys and the 12-key panel on the left. It is simply the best.
Re:Show HN: A portable hash map in C on Monday December 09, 2024 @04:12AM (#42364336)
Dunno how this is supposed to be worded, but it's because the "pointerhood" is tied to the variable being declared, not the type itself. This becomes obvious when you declare multiple variables at once.

  char* cat, dog;  /* one char pointer, one char */
  char *cat, *dog; /* two char pointers */
SMARTDRV /C
Re:The Leica Q: A six month field test on Tuesday February 16, 2016 @12:35PM (#11111567)
Almost all old rangefinders were quiet, ditto for folders and TLRs - it wasn't in any way Leica specific. SLRs, on the other hand, can be rather noisy because of the mirror slap. Pentax 67 sounds almost like a weapon.
The reason for it being rare here in Finland is the lack of demand.

Most horses that are put down would be perfectly fine for human consumption, but slaughterhouses do not buy them for the aforementioned reason. The primary consumer of horse meat in Finland is the sausage industry, and they buy cheap South American meat by ton.

Re:Decommissioning a free public API on Monday February 01, 2016 @06:16AM (#11011084)
If you require quality code and sound design decisions, I'm afraid you may end up without a set-top box.
Basically everything pre-mid-'60s had this.
Not true, neither of the founders died in a car accident.

Volvo had a very strong safety emphasis already in the '50s, introducing many firsts in the automotive safety field. In that decade they introduced shoulder belts as a world first and padded dashboard as an European first (Tucker had this already in '40s but only 51 cars were ever made).

Re:Why do we need a new OS? on Friday January 22, 2016 @01:06AM (#10951060)
"Another change since the original OSes were initially being built is the need for security"

I do not know what's referred to as "original OSes" but many old operating systems had actually pretty decent security architecture. MULTICS and VMS, for example, and many others too.

Re:Newly discovered earliest draft of a Unix manual (1971) on Sunday December 27, 2015 @03:19PM (#10798622)
Fascinating. No pipes yet!
Re:Poor man's VPN via ssh socks proxy on Sunday December 13, 2015 @05:23PM (#10728236)
Back in late '90s a friend lived in a student dorm which had a then-fast 512 kbps Internet connection. It was heavily firewalled - UDP only to ISP's nameservers, TCP only to ISP's web proxies. ICMP was passed anywhere, though, so he wrote a small program which encapsulated a TCP stream in ICMP "host unreachable" reply packets, IIRC. The other end of the tunnel ran on a machine at the place where he was interning as a junior programmer. Debugging the program was slightly painful because he couldn't obviously be at both ends of the tunnel simultaneously, but he got it to work in a couple of weeks. It wasn't very tolerant of packet loss - IIRC it didn't have any mechanism to resynchronize the connection if there was any, but instead there was some method of reinitializing the connection. Anyway, running SOCKS on top of all this made the ISP-crippled connection usable in a normal manner.
Re:The World of Modular Synthesizers (2013) on Tuesday November 10, 2015 @11:31AM (#10540286)
http://wiard.com/

They have some pretty far-out stuff. Woggle Bug and Waveform City are outstandingly weird in a very creative way.

Older »