HNHacker News
TopNewBestAskShowJobs

inejge

650 karma · joined April 29, 2022

submissionscomments
inejge··on My 20 year career is technical debt or deprecated
Eh, zero on failure, I suppose. The real write(2) syscall returns -1 on failure, and a non-negative value is the number of bytes actually written. But the general point still stands.
inejge··on My 20 year career is technical debt or deprecated
> let &mut writer = Writer<T>::writer::new(connection.clone()).clone(); // TODO ??? writer.write(data.clone()).unwrap();

It's not difficult to arrive at the caricature of baroque generic code if you combine lack of knowledge with miscommunication. The knowledgeable coworker should be aware that a writable object implements the Write trait, and know, or find out, the signature of the Write::write() method. Even fully generic, a function accepting a connection and returning the result of writing a block of data is not too gnarly:

    use std::io::{self, Write};

    fn write_data<W: Write, D: AsRef<[u8]>>(connection: &mut W, data: D) -> io::Result<usize> {
        connection.write(data.as_ref())
    }
No unwraps, no clones. Because they're not necessary here. But someone has to know the language and the idioms. Even your "easy" C++ code depends on knowing that write() returns zero on success, and that integers can play the role of booleans in conditions.*
inejge··on Apple Detection of Flashing Lights
Apple has e-ink tablets? If you're thinking of e-readers like Kindle, a) most devices released in the past ten years have muted page turns with little or no flashing, b) even on very old devices, a page turn is a single gray-black-gray transition occupying a small part of the visual field, which is very unlikely to trigger a photosensitive seizure.
inejge··on GitHub Packages Is Down
That's being addressed with a new index protocol, specified a while ago[1], available for testing since the middle of the last year[2], and slated for release in a week's time[3].

[1] https://rust-lang.github.io/rfcs/2789-sparse-index.html

[2] https://blog.rust-lang.org/2022/06/22/sparse-registry-testin...

[3] https://blog.rust-lang.org/inside-rust/2023/01/30/cargo-spar...

inejge··on U-Bahn station in Berlin is decorated with radioactive uranium glazed tiles
The overlay gets that position wrong -- it's µSv/h (microsieverts, the transliterated legend is "mkZv/ch".) 11.37 mSv/h would be a radiological incident. The Australian lost density gauge capsule from a couple of days ago was 2-5 mSv/h.
inejge··on Urgent public health warning issued over lost radioactive capsule
As usual, the press omits the technical specification of the radiation source, leaving one trying to deduce it from the roundabout descriptions in the article. Would it kill them to put something like "a 37 MBq Cs-137 source" somewhere? Granted, the WA Health press release is not too informative either, but at least it identifies the material.

(The X8 capsule from [1] is a dead ringer for the one described.)

[1] https://www.qsa-global.com/industrial-cs-137-gamma-sources

inejge··on Omega-3s: Are “Brain-Boosting” Effects Scientifically Backed?
Search for "hypervitaminosis A", for example.
inejge··on Hewlett Packard HP-15C Simulator
For the classic HP RPN, it isn't. Numbers are entered directly into the X register. ENTER does several things: it finishes the input, copies the new value in X to Y (shifting the rest up) and inhibits "stack lift", so the stack won't be automatically shifted up when you start entering the next number.

Sounds complicated, but in practice you don't think about it at all.

inejge··on Was everyone stupid back then?
If you consider A Declaration of the Independence of Cyberspace as singularly representative of the zeitgeist "back then"... Yes, everyone was stupid, in the same manner that love can be stupid. Humanity never gave up on love, and I hope it never gives up on starry-eyed idealism; it can lead to dogmatic and authoritarian horrors, but some of the ideals may enhance the fabric of society and make it a little less savage. Less of the former and more of the latter, please, if possible. The process is slow and uneven, and personally, I'm not too hopeful, but I still prefer faint hope to unrelenting cynicism.

(What's strange about A Declaration... is that it came a decade after Neuromancer and two years after Eternal September. You may choose to doubt the predictive power of dystopian fiction, but the reality check of the influx of participants outside of the pretty exclusive early-internet club should be much harder to overlook. That document managed to disregard both. It was strangely anachronistic even at the moment.)

inejge··on Tesla devs at Twitter misunderstand Slack privacy; leak fire lists based on LOC
if I was told by my boss to do something like deactivate X, change something to Y, or in this case, fire X% of people, do people really expect employees to not follow it?

The implication is that their instructions were much more detailed than "fire X% of people" and included using LoC as the metric, which nobody questioned.

(Any quantitative measurement of code quality will have too many outliers to be fair. LoC? Of course not. Number of closed PRs? You can't say much without knowing their complexity or severity. Etc. But they had to be quick, not fair.)

inejge··on US regulators will certify first small nuclear reactor design
It still blows my mind that a sub only needs to refuel once every 15 years.

One of the things making this possible is 90+ percent enrichment of U235 in the fuel. That's weapons grade and won't fly in a civilian reactor. I haven't read NuScale's application in great detail but I'd be surprised if they used anything above 5 percent.

inejge··on Show HN: Lldap, a Simplified LDAP Server
The problem is that back-sql is unmaintained (e.g., see [1]) and only security bugs are addressed.

[1] https://lists.openldap.org/hyperkitty/list/openldap-technica...

inejge··on Science needs more research software engineers
I don't think I've ever heard anyone refer to a software package as "a code."

Then you probably haven't been around physicists, or read enough physics-related material. A non-scholarly reference which can't be easily checked online is George Dyson's "Project Orion," where Freeman Dyson (author's father) is quoted as mentioning this or that "code" as significant for the design of various Orion parts. (That should be a native enough English speaker.) The time-frame is late 1950s to early 1960s.

inejge··on Rust Is Hard, Or: The Misery of Mainstream Programming
A proper algebraic effect system could resolve the problem.

It could also take as long as the async MVP itself to get off the ground, and you can't know if it wouldn't hit its own snags when deployed at scale. (From long ago, I remember the "non-parametric dropck" RFC as an illustration of a neat concept colliding with reality.)

Languages with mainstream aspirations evolve under greater pressure. I don't know this, but I strongly suspect that async was necessary for Rust to gain acceptance at, say, Amazon. So it couldn't practically have been designed with a wide-open timeframe. The result is what we have; one can uncharitably call it "half-baked" and tut-tut about the sharp edges, but it's workable if you know what to avoid. (But it's so tempting to imagine what could have been, eh?)

inejge··on Science needs more research software engineers
I have never heard or read anyone, beside physicists, say codes for software code. It doesn't even make sense.

Why not? "A code" is a software package which solves some kind of problem computationally. Plural, codes. I'm sure it's been in use almost as long as the programmable computers. Here's[1] a link to an article from 1968 which uses the term in the singular ("The MENE Neutron Transport Code".)

[1] https://www.osti.gov/biblio/4819611-mene-neutron-transport-c...

inejge··on OpenVMS on x86
I just can't understand why they would make this ancient OS so inaccessible.

The OS is used by a limited and probably dwindling number of vendors of specialized, complex and long-lived software originally developed for VAX/VMS. I was tangentially related to users of such software for a while; the vendor made the VAX->Alpha and Alpha->Itanium transitions, but saw the writing on the wall and ported the software away from VMS. VSI is not a large outfit, and they're a business. They don't need the hassle of dealing with hobbyists.

It is genuinely great stuff, and with an active community it would probably re-emerge as a legitimate contender.

It's a fascinating and superbly documented system, agreed. But a contender? Far too late for that, IMO, if it was ever in the cards (I don't think so.)

inejge··on Fourth-generation programming language
A snarky tagline used to say, "Informix-4GL is not 4G, and it's barely an L."

I understand the sentiment, although in reality it wasn't that bad. What I4GL and its ilk accomplished was to make a passable bridge between SQL and a vanilla procedural programming language, which still had the usual SQL/procedural impedance mismatches, but was miles ahead of horrors like Embedded SQL/C (as you've alluded to with the remark about generated C's verbosity.) I did my share of I4GL programming and still remember it semi-fondly.

← PreviousPage 7 of 7