News for hackers. Stuff that matters.

hexane360

Re:Zig's Incremental Compilation Internals on Wednesday July 29, 2026 @05:10PM (#49103131)
https://codeberg.org/ziglang/zig/issues/36237

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

Re:Python as a Second Language Empathy on Saturday March 01, 2025 @09:32PM (#43226579)
Well, except in the case of variable shadowing.
Re:Build your own SQLite, Part 4: reading tables metadata on Tuesday February 04, 2025 @01:04PM (#42936219)
Signs we may be reaching the Plateau of Productivity
Re:Entropy of a Large Language Model output on Monday January 13, 2025 @03:09PM (#42688367)
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)
Re:Terence Tao: One of my papers got declined today on Wednesday January 01, 2025 @11:06PM (#42571530)
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
It's MathJax, do you have javascript enabled?
Re:Scientific computing with confidence using typed dimensions on Thursday November 21, 2024 @05:30PM (#42209359)
Note that Mathematica units impose a very large runtime penalty, making them unsuitable for a lot of applications
Re:Five Unusual Raku Features on Tuesday November 12, 2024 @08:38PM (#42122035)
It's also quite similar to Thread and MapThread in Mathematica
Re:Approximating sum types in Python with Pydantic on Thursday August 15, 2024 @02:41PM (#41259110)
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

Re:Boeing Starliner launches first crewed mission on Wednesday June 05, 2024 @02:55PM (#40588863)
Also worth noting that test pilots of experimental aircraft generally wear parachutes, at least for higher risk tests. This includes tests of commercial aircraft.
Re:Generate an OpenSCAD case template from a KiCAD PCB on Monday June 03, 2024 @11:19AM (#40563532)
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

Re:Algebraic Data Types for C99 on Friday May 10, 2024 @05:33PM (#40323985)
... 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?
Re:Algebraic Data Types for C99 on Friday May 10, 2024 @04:02PM (#40323252)
Only if you're designing both functions ahead of time. In other words, it's not composable.
Re:Algebraic Data Types for C99 on Thursday May 09, 2024 @01:31PM (#40310612)
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?

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."

On the other hand, I saw this just this morning: https://x.com/RealDanODowd/status/1778224756220940585
No, because the engine is also insignificant compared to the brakes. A SUV might have brakes (briefly) capable of 900 HP of power absorption
Re:Abusing Conda's Turing-Complete YAML Comments on Sunday February 25, 2024 @10:48PM (#39507445)
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.

Re:PID Controllers in Unity3D on Tuesday January 16, 2024 @12:09PM (#39015727)
Does that rule-of-thumb assume specific units/value ranges for the input and output signals?
Re:The case of the vector with an impossibly large size on Friday January 12, 2024 @11:11AM (#38969787)
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.
Re:Universities Are Not on the Level on Saturday January 06, 2024 @05:52PM (#38896384)
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?

Re:Universities Are Not on the Level on Saturday January 06, 2024 @03:06PM (#38894891)
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.

Re:Universities Are Not on the Level on Saturday January 06, 2024 @02:31PM (#38894528)
Except that's transparently not true outside of the imagination of culture warriors.
Re:The Apollo Syndrome on Monday December 18, 2023 @12:24AM (#38679502)
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."

Here's a great video about these Excel competitions: https://youtu.be/N2QC6VQXo8U
Any plans to support Denver's commuter trains (RTD)?
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.

Re:SQL Reserved Words – The Empirical List on Thursday October 12, 2023 @12:13AM (#37853419)
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.

Re:Literature review on the benefits of static types on Saturday October 07, 2023 @01:54PM (#37803932)
"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.

Older »