HNHacker News
TopNewBestAskShowJobs

superjan

1,362 karma · joined July 16, 2017

submissionscomments
superjan··on Why does the SARS-Cov2 genome end in aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa? (2020)
Perhaps they were dictating?
superjan··on Regular Expressions make me feel like a powerful wizard: that's not a good thing
It’s funny but I have made the opposite transition recently.

The reasons: Writing parsing code by hand tends to be verbose, error prone (such as off by one errors), ad hoc, and full of temporary strings. Editor syntax highlighting (and also sites like regex101). Lastly regexes are matched in one go (match /no match) which is good for readability.

I do avoid making regexes long if I can.

superjan··on Meta to ask many managers to become individual contributors or leave
You can and should do both. What I wrote above is a job a manager has to do every now and then, not the fun part, but also hard to evade.
superjan··on Meta to ask many managers to become individual contributors or leave
In general, if you want your reports to accept company decisions, it is in your interest as a manager to align your stated opinions with company policy. Openly disagreeing, or just trying to take a neutral position will only reduce faith in the company and sow unrest for which you will be held accountable.
superjan··on AI Generated Seinfeld banned on Twitch for transphobic jokes
Edit: never mind this comment, but can’t delete anymore. Don’t remember where I heard this.

If your brain does not get exposed to the ‘right’ set of hormones at the right time while you’re in the womb, your brain can develop a different gender identity than the rest of your body. This can be the explanation for some trans people, but I don’t know how many.

superjan··on Discovery could extend battery life by replacing tape that causes self‑discharge
I set my laptops to hibernate when the lid closes. Entire RAM written to disk, then a full powerdown. Do turn off wake timers and wake on USB (sometimes disabled in true hibernation but not always).
superjan··on Yoda Conditions
if (42 = myNumber) { /* ... */ }

// A syntax error this is and compile it will not

superjan··on Toroidal propeller allows a drone to operate more quietly [pdf]
Perhaps if your design does not improve stiffness? The way it’s phrased suggest that that is a necessary part of the design.
superjan··on An unexpected benefit of unit tests
I don’t either. But somehow TDD is considered the sanctioned way to work with unit tests, and that it is almost pointless to write tests unless you’re doing TDD. I am relieved to read that I am not the only one.
superjan··on Genesis Filed for Bankruptcy
Couldn’t you make the same argument about fiat currency? Both in regular finance and in defi there exist funds that do high stakes gambles with other people’s money.
superjan··on Genesis Filed for Bankruptcy
A cryptocurrency company (not an exchange). For the recent headlines about their struggle:

https://web3isgoinggreat.com/?collection=genesis

superjan··on Git security vulnerabilities announced
This is a great point. But how about if the language would allow the programmer to specify what range of values is expected for function input/output?

Then a compiler could try to reason about the computation and decide that overflow does not happen if all values are within bounds, and just add checks at the function boundaries.

superjan··on Tell HN: Windows 10 might have tricked you into using a online account
Luckily your grandma has a grandchild who can do that for her.
superjan··on Tell HN: Windows 10 might have tricked you into using a online account
That could have been be the update after the one that famously deleted the content of your download folder.
superjan··on The iPhone Keyboard – Make It or Break It (2022)
I also type multiple languages, and I make more typing efforts than average, in which case autocorrect really goes nuts. I turned autocorrect off a long time ago. Slower but at least I have control over what I write.
superjan··on The James Webb Space Telescope is finding too many early galaxies
Well most physicists assume it is massively bigger than we can see. It is in principle possible that we see nearly all of it, but that would be very coincidental. The only thing we know is that it is at least as big as we can observe, but it could be hundreds of times bigger, 10^100, or even infinite.

There are speculations one could make that imply a minimum size, I recall a reading a prediction of 10^50 times bigger or so.

superjan··on Ask HN: What's your favorite illustration in computer science?
> Computers will make the world of tomorrow a much safe place. They will do away with cash, so that you need no longer fear being attacked for your money.

Hahaha

superjan··on CSS lengths in Gecko are limited to 17,895,697 pixels (2010)
For “deep zoom” applications, such as microscope slide images or a “google maps” app, I can imagine that developers get the idea to let the browser do the panning/zooming. Then you could run into limits like this. But he should have tested if this works before building the app.
superjan··on Bflat – a single ahead-of-time crosscompiler and runtime for C#
Exactly. Idiomatic C# code does not depend on finalizers to release resources. Finalizers are typically only used as a last resort to prevent handle leaks, it is only memory deallocation that is nondeterministic.
superjan··on Bflat – a single ahead-of-time crosscompiler and runtime for C#
Thanks.
superjan··on Bflat – a single ahead-of-time crosscompiler and runtime for C#
There is a PoC OS in C#.

https://en.wikipedia.org/wiki/Singularity_(operating_system)

superjan··on Bflat – a single ahead-of-time crosscompiler and runtime for C#
Hi. I think this is an exciting development. It will be much work to replicate all dotnet standard libraries. Is there anything existing that can be ported/reused? For instance the original work on mono? Or is any of microsoft’s work licenced permissible enough to use?
superjan··on CPU branch prediction evolution over years (2017)
This is related to an idea from data oriented design: Split up your data such that each piece of data needs exactly the same transform, and do all those at once.
superjan··on Safari's date-picker is the cause of 1/3 of our customer support issues
Programmers and UI designers should observe there two common use cases:

1: dates close to the current date, such as flight dates, meetings, delivery dates. 2: birth dates and similar (wedding date, start of employment), often a long time ago.

For “near future” dates, date pickers are somewhat handy because you can see the day of the week, and glance the number of days compared to other dates.

For date of birth, date pickers are useless. You don’t need to pick anything, you will just know it by heart in most cases and you can type it fast enough.

Programmers like date pickers, because you can’t choose nonexistent dates, you can’t confuse day/month number, and you can’t enter ambiguous 2 digit years. And they like consistency, so the same design is used for all use cases.

Please realize that consistency != usability.

superjan··on A simple guide on words to avoid in government
This is an area where machine learning could make a positive impact to society. Have something like GPT rewrite/review all public facing text. Preferably a required rewrite, which is published unless it is factually incorrect.
superjan··on ‘My power’s low’: NASA’s Insight Mars lander prepares to sign off
I asked about that recently in another thread. Besides the argument that you can just make the panels bigger, the dust is also statically charged so it is sticky, and wiping it off is not easy. It is also amusing that we, as programmers, are inclined to suggest adding MOVING PARTS to a system that is not servicable, and that the same problem can be solved just by adding more of an already proven solution. It sounds like this one clever special mitigation that solves a minor problem, but instead brings the system down.
superjan··on Binance's books are a black box, filings show, as it tries to rally confidence
I think I read the parent comment differently: when crypto is claimed to be a weapon against the west, it is not because it is in any way an alternative, it is a weapon as a system supporting illicit activities against the west (money laundering, sanction evasion, state sanctioned ransomware). The fact that it slow, unscalable and expensive does not matter for those type of activities. So I thought it does not really matter that our banks are efficient.
superjan··on Binance's books are a black box, filings show, as it tries to rally confidence
True, but how is it relevant to the comment you replied to?
superjan··on R/ElonJetTracker
Wouldn’t a 24 hour delay be enough to satisfy the curious about Elon’s flying habits, without creating a possible security risk? I don’t know how real the risk is, but it is certainly not zero, as he is a controversial public figure.
superjan··on Binance outflows hit $6B as Mazars halts ‘proof of reserves’ work
Isn’t Tether controlled by bitfinex?
← PreviousPage 8 of 19Next →