HNHacker News
TopNewBestAskShowJobs

hexane360

1,387 karma · joined May 19, 2016

submissionscomments
hexane360··on Zig's Incremental Compilation Internals
https://codeberg.org/ziglang/zig/issues/36237

>introduce an actually memory safe (unlike borrow checking) compilation mode inspired by Fil-C

hexane360··on Python as a second language empathy (2018)
Well, except in the case of variable shadowing.
hexane360··on Build your own SQLite, Part 4: reading tables metadata
Signs we may be reaching the Plateau of Productivity
hexane360··on Entropy of a Large Language Model output
Fig. 8, where the model becomes poorly calibrated in terms of text prediction (Answers are "flattened" so that many answers appear equally probable, but below the best answer)
hexane360··on One of my papers got declined today
In many subfields, the submitter isn't even attempted to be hidden from the reviewers. Usually, even the reviewers can be guessed with high accuracy by the submitters
hexane360··on Energy is frame-dependent, infrastructure of energy is frame-independent (2020)
It's MathJax, do you have javascript enabled?
hexane360··on Scientific computing with confidence using typed dimensions
Note that Mathematica units impose a very large runtime penalty, making them unsuitable for a lot of applications
hexane360··on Unusual Raku Features
It's also quite similar to Thread and MapThread in Mathematica
hexane360··on Approximating sum types in Python with Pydantic
As an alternative to Pydantic, check out the wonderful mashumaro: https://github.com/Fatal1ty/mashumaro

I've also played around with writing my own dataclass/data conversion library: https://github.com/hexane360/pane

hexane360··on Boeing Starliner launches first crewed mission
Also worth noting that test pilots of experimental aircraft generally wear parachutes, at least for higher risk tests. This includes tests of commercial aircraft.
hexane360··on Generate an OpenSCAD case template from a KiCAD PCB
This plus make a lot of sketches describing what each variable is physically, and use geometry to derive dependent dimensions.

Libraries like BOSL2 help with placement/attachment of features: https://github.com/BelfrySCAD/BOSL2

hexane360··on ICC prosecutor seeks arrest warrants against Sinwar and Netanyahu for war crimes
H.W. Bush brought Israel in line: https://www.huffpost.com/entry/george-hw-bush-israel-palesti...

Reagan did it with a single phone call: https://www.nytimes.com/1982/08/13/world/reagan-demands-end-...

hexane360··on Algebraic Data Types for C99
... no? Unless you're referring to null as a bottom type, then that doesn't hold. Are you describing some property of a specific language?
hexane360··on Algebraic Data Types for C99
Only if you're designing both functions ahead of time. In other words, it's not composable.
hexane360··on Algebraic Data Types for C99
This often comes up when writing a function which returns a wrapper over a generic type (like Option<T>). If your Option type is T | null, then there's no way to distinguish between a null returned by the function or a null that is part of T.

As a concrete example, consider a map with a method get(key: K) -> Option<V>. How do you tell the difference between a missing key and a key which contains `null` as a value?

hexane360··on Probing electron spin states at much higher resolution and efficiency
There's a quote from Michelson that "the future truths of physical science are to be looked for in the sixth place of decimals". Many misinterpret this to be a statement that 'there's nothing new to be discovered', but his actual point was that discovering new science requires rigorously searching out and understanding even small deviations in measurements.

Here's the full quote:

"While it is never safe to affirm that the future of Physical Science has no marvels in store even more astonishing than those of the past, it seems probable that most of the grand underlying principles have been firmly established and that further advances are to be sought chiefly in the rigorous application of these principles to all the phenomena which come under our notice. It is here that the science of measurement shows its importance — where quantitative work is more to be desired than qualitative work. An eminent physicist remarked that the future truths of physical science are to be looked for in the sixth place of decimals."

hexane360··on Ford Mustang Mach-E using BlueCruise at time of crash: NTSB
On the other hand, I saw this just this morning: https://x.com/RealDanODowd/status/1778224756220940585
hexane360··on Ford Mustang Mach-E using BlueCruise at time of crash: NTSB
No, because the engine is also insignificant compared to the brakes. A SUV might have brakes (briefly) capable of 900 HP of power absorption
hexane360··on Abusing Conda's Turing-Complete YAML Comments
Meanwhile, there's still no support for dependency specifiers/environment markers (PEP 508/PEP 345) in environment.yml files, and the documentation is VERY sparse about what is supported: https://conda.io/projects/conda/en/latest/user-guide/tasks/m...

At least they support ~=3.9 and >=1,<3 comparisons (although this is undocumented as far as I can tell.

hexane360··on PID Controllers in Unity3D (2021)
Does that rule-of-thumb assume specific units/value ranges for the input and output signals?
hexane360··on The case of the vector with an impossibly large size
See also Windows setting menus. People see this as a flaw, but I much prefer that to breaking existing functionality for the sake of a redesign. Make a new interface for simple usecases, but keep the old one around just in case.
hexane360··on Universities Are Not on the Level
First of all, the posters were not obviously satirical (as evidenced by the letter I linked). The intent of the posters only matters if you think MIT left the posters up because they had a leftward intent but a rightward message. But MIT made their decision before knowing the identity or politics behind the posters. This isn't the only example, but it is one that straightforwardly shows that MIT is consistent with regards to its free speech policies.

You accuse me of arguing dishonestly. Instead, why don't you present your evidence that MIT has acted against its policy in an official capacity?

hexane360··on Universities Are Not on the Level
For instance, MIT recently had a bunch of hate speech (against LGBTQ people) posted around campus. In response, MIT... defended the actions and encouraged students to post their own countermessages rather than take down the hateful posters: https://orgchart.mit.edu/letters/recent-postering

If anything, MIT has been more forceful in setting limits on pro-Palestinian demonstrations than on anti-LGBTQ speech.

hexane360··on Universities Are Not on the Level
Except that's transparently not true outside of the imagination of culture warriors.
hexane360··on The Apollo Syndrome
Some of my favorites: https://youtu.be/JhmdEq3JhoY

> "Our enemies are innovative and resourceful, and so are we. They never stop thinking 'bout new ways to harm our country and our people, and neither do we."

> "It was not always a given that the United States and America would have a close relationship"

> "Who could have possibly considered an erection in Iraq at this point in history?"

> "I know the human being and fish can coexist peacefully."

hexane360··on Sydney man dubbed the 'Annihilator' wins spreadsheet world championship
Here's a great video about these Excel competitions: https://youtu.be/N2QC6VQXo8U
hexane360··on Show HN: Trains.fyi – a live map of passenger trains in the US and Canada
Any plans to support Denver's commuter trains (RTD)?
hexane360··on datetime.utcnow() is now deprecated
It's worth noting that numpy and scipy have a consistent policy now, although it's not semver. Deprecations will always happen at least 2 minor versions before removal:

https://numpy.org/neps/nep-0023-backwards-compatibility.html

https://numpy.org/doc/stable/dev/depending_on_numpy.html#run...

So, when using numpy in a package, and you've tested e.g. versions 1.12 to 1.22, you should require 'numpy>=1.12,<1.25', because something deprecated in version 1.23 could be removed in 1.25.

hexane360··on SQL reserved words – An empirical list
I'm sure you know this, but this is actually a special case of a much more general rule; in Julia, prefixed string literals are implemented are passed on to macros: https://docs.julialang.org/en/v1/manual/metaprogramming/#met...

Such macros can be defined by libraries or the end user to provide special behavior.

hexane360··on Literature review on the benefits of static types (2014)
"Dynamic typing" refers to types which can be determined only at runtime, not at compile time.

"Type inference" is what you're referring to, and is an optional feature of static type checkers. For instance, C has static types but no type inference, while C++ has static types with type inference. The concept of "type inference" doesn't make sense for dynamic typing.

Page 1 of 23Next →