Better HN
topnewbestaskshowjobs
Log inSign up

hexane360

1,387 karma · joined May 19, 2016 (10y ago) · 676 submissions

Submissions

comment 3mo ago · link · parent

https://codeberg.org/ziglang/zig/issues/36237

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

comment 1y ago · link · parent

Well, except in the case of variable shadowing.

comment 1y ago · link · parent

Signs we may be reaching the Plateau of Productivity

comment 1y ago · link · parent

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)

comment 1y ago · link · parent

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

comment 2y ago · link · parent

It's MathJax, do you have javascript enabled?

comment 2y ago · link · parent

Note that Mathematica units impose a very large runtime penalty, making them unsuitable for a lot of applications

comment 2y ago · link · parent

It's also quite similar to Thread and MapThread in Mathematica

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Also worth noting that test pilots of experimental aircraft generally wear parachutes, at least for higher risk tests. This includes tests of commercial aircraft.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Only if you're designing both functions ahead of time. In other words, it's not composable.

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

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

comment 2y ago · link · parent

On the other hand, I saw this just this morning: https://x.com/RealDanODowd/status/1778224756220940585

comment 2y ago · link · parent

No, because the engine is also insignificant compared to the brakes. A SUV might have brakes (briefly) capable of 900 HP of power absorption

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Does that rule-of-thumb assume specific units/value ranges for the input and output signals?

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Except that's transparently not true outside of the imagination of culture warriors.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Here's a great video about these Excel competitions: https://youtu.be/N2QC6VQXo8U

comment 2y ago · link · parent

Any plans to support Denver's commuter trains (RTD)?

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

12345
23