HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Pinus

626 karmajoined vor 9 Jahren

comments

Pinus
·vor 6 Tagen·discuss
More advanced slide rules typically have a set of “folded” scales, that can sometimes save a calculation from ending up off scale. In theory, these should be offset by half the scale length, i.e. sqrt(10). However, since the folded scales also offer a convenient way to multiply with the offset factor, most slide rules offset them by π instead, since it’s almost the same as sqrt(10), and multiplication by π is a more useful thing to have around.
Pinus
·vor 2 Monaten·discuss
The slide transition at 6:16 took me by surprise. =)

Chap needs to have his suit jacket fixed, though... that collar gap!
Pinus
·vor 2 Monaten·discuss
Did anyone ever actually use trigraphs or digraphs in C? All I ever saw in Sweden (where the most commonly used seven-bit character encoding lacked brackets, braces, backslash and vertical bar) was to just use the same code points and writing int main(int argc, char argvÄÅ) ä ... å, or setting your terminal to use USASCII, l|{v}ng your pl{}n t|xt look}ng l}k| th}s.
Pinus
·vor 2 Monaten·discuss
I remember seeing more or less the same bug 20 years ago... "Calling" process did connect, write, close. "Answering" process did accept, write("hello"), read, close. One of them got ECONNRESET on Windows NT, but not on some Unix variant (or possibly the other way around) because there was data (the "hello") that was sent but never read.

It it nice that there are some constants in this rapidly-changing world. =)
Pinus
·vor 3 Monaten·discuss
As for the "who would want that", I think the use case for that kind of printer today is slow logging. With a laser printer that outputs a page at a time, if you log one line per day the power fails after 65 days, you lose the 65 lines that was in its memory. The MX-80 can print a line, or even a character if you poke it in the ribs a bit, at a time, so if the power goes away, your printed lines are still there.
Pinus
·vor 3 Monaten·discuss
Unfortunately, the plain text does not look good, and does not offer good control of the typesetting. At least, nearly all markdown I see is almost unreadable in its “raw” state. I’d much rather read manually formatted, monospaced, text. That way, you can use asterisks as bullets, as footnote markers and as emphasis markers all at the same time, and anyone who is familiar with normal typographic conventions will understand what is what.
Pinus
·vor 4 Monaten·discuss
I finally got around to it myself. Worked just fine. (VS Code, Github Copilot, Claude Haiku 4.5).
Pinus
·vor 4 Monaten·discuss
If you just toss the image at one of those newfangled AI thingamajigs (Copilot, Claude, whatever) and say "Compile this C++ program", does it work? Someone must have tried it by now – give us a report!
Pinus
·vor 5 Monaten·discuss
Thanks for writing this! I remember reading about dBase II as a kid, and now that I’m (much!) older and actually using some of the databases of today, I have sometimes wondered what those older personal-computer databases looked like.
Pinus
·vor 5 Monaten·discuss
The problem I always run into when I try something like this, is that I mostly (there are exceptions) use paper as a data processing medium (as opposed to a data recording medium). Most of what I do on paper is messy, half-baked, wrong, turns out to be a false start, whatever. Once all that is fixed, what is left gets tidied up into some sort of digital form, usually program code. I don’t want all that mess in the capital-N Notebook, but it is hard to know when to switch from backs of envelopes to the Notebook.

I suppose there might be a value in stopping right before the tidying-up stage (or perhaps right after it) and summarise the steps that led up to it (including abandoned approaches, and why) into some sort of document but that, for me, would be a digital file somewhere, not paper.
Pinus
·vor 5 Monaten·discuss
As far as I can remember, most mail servers were fairly sane about that sort of thing, even back in the 90’s when this stuff was introduced. However, there were always these more or less motivated fears about some server somewhere running on some ancient IBM hardware using EBCDIC encoding and truncating everything to 72 characters because its model of the world was based on punched cards. So standards were written to handle all those bizarre systems. And I am sure that there is someone on HN who actually used one of those servers...
Pinus
·vor 6 Monaten·discuss
From what I have understood, a significant part of the reason why Sweden scrapped its nuke program last time around, was that we found out that nukes pose more questions than they answer. Obviously, you need the nukes themselves, and a reliable delivery mechanism. Neither are cheap. Preferably, you want second-strike capability, which is kind of tricky. And you want some way of balancing things so that the enemy does not take a chance on that second-strike capability and nuke you first anyway. Then you need something to use them for. At the time, the targets would probably have been ports in the Baltic states, then (involuntary) parts of the Soviet union and likely starting points for the hypothetical Soviet invasion fleet. Could we really stomach the idea of killing a few thousand Estonian civilians, probably not too happy about being used as stepping stones by the Soviets? For most military targets, there are better weapons.

Of course, it has later been argued that by entering into various more or less hidden agreements with the US, we made ourselves nuclear targets anyway, with no formal guarantees whatsoever to show for it...
Pinus
·vor 6 Monaten·discuss
Obviously, it has to eventually build and run if there’s to be any point to it, but is it necessary that every, or even any, step along the way builds and runs? I imagine some sort of iterative set-up where one component generates code, more or less "intelligently", and others check it against the C, HTML, JavaScript, CSS and what-have-you specs, and the whole thing iterates until all the checking components are happy. The components can’t be completely separate, of course, they’d have to be more or less intermingled or convergence would be very slow (like when lcamtuf had his fuzzer generate a JPEG out of an empty file), but isn’t that basically what (large) neural networks are; tangled messes of interconnected functions that do things in ways too complicated for anyone to bother figuring out?
Pinus
·vor 6 Monaten·discuss
I haven’t studied the project that this is a comment on, but: The article notices that something that compiles, runs, and renders a trivial HTML page might be a good starting point, and I would certainly agree with that when it’s humans writing the code. But is it the only way? Instead of maintaining “builds and runs” as a constant and varying what it does, can it make sense to have “a decent-sized subset of browser functionality” as a constant and varying the “builds and runs” bit? (Admittedly, that bit does not seem to be converging here, but I’m curious in more general terms.)
Pinus
·vor 6 Monaten·discuss
We _have_ standardized on Earth circumferences for length, only we divide by 40 million to make the numbers more sane, and got the measurement slightly wrong!
Pinus
·vor 7 Monaten·discuss
You take a language designed around the limitations of 1970’s computers and the absence of limitations of Donald Knuth’s brain, and then you build a document system on top of that. What could possibly go wrong? =)
Pinus
·vor 8 Monaten·discuss
Meanwhile, Cambridge has, or at least had a few years ago, at least one combined pedestrian/cattle tunnel (there was a fence down the middle!) under a major road.
Pinus
·vor 8 Monaten·discuss
If you want something to hang on your wall, an original strip is coming up for auction in Stockholm more or less as I write. The bid is currently at over 1 MSEK (100kUSD)... https://auctionet.com/sv/events/891-the-modern-art-design-sa...
Pinus
·vor 8 Monaten·discuss
For the built-in float type in Python, the behaviour is a bit funny:

    >>> nan=float('nan')
    >>> a=[nan]
    >>> nan in a
    True
    >>> any(nan==x for x in a)
    False
(Because the `in` operator assumes that identity implies equality...)
Pinus
·vor 9 Monaten·discuss
I thought there was something about the king of the UK having to ask permission to enter the City of London, but apparently that is a misunderstanding (https://en.wikipedia.org/wiki/City_of_London_Corporation#Tem...). Pity, it would have been a good story of even monarchy bowing to finance! =)