Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stabbles
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
271.
▲
by
stabbles
3y ago
Relevant username
272.
▲
by
stabbles
3y ago
If you live in a country where local, short-term rain / shower forecast is essential (like [1] [2]), it's funny to see how incredibly bad radar forecast is. There are really convenient apps that show an animated map with radar dat
273.
▲
Spack Package Manager v0.21.0
(github.com)
3 points
by
stabbles
3y ago
|
0 comments
274.
▲
by
stabbles
3y ago
It's funny how languages like Go and Julia are typically still seen as "new", even though they are more than a decade old. It's similar to "modern C++" referring to C++11 and above. Sometimes you even read abou
275.
▲
by
stabbles
3y ago
Just as an example: CMake ensures roughly a decade of backwards compatibility. This `license_file` change is the epitome of unnecessary breakage.
276.
▲
by
stabbles
3y ago
About "eager deprecations" let me give you another absolute gem: ******************************************************************************** The license_file parameter is deprecated, use license_files instead.
277.
▲
by
stabbles
3y ago
Python's situation is pathetic. Some Python folks wanted to get rid of the builtin module `distutils`. Got deprecated, and now it's finally removed in Python 3.12. That's a breaking change in a minor release, probably because
278.
▲
by
stabbles
3y ago
Where did you get those numbers 35-50%?
279.
▲
by
stabbles
3y ago
You'd hope that modules would make those issues go away, instead of making them worse. Also, CPPFLAGS ensure the shared code in headers is the same, whereas with modules it feels as if you have to manually bring the compiler itself in
280.
▲
by
stabbles
3y ago
In Python I sometimes miss "header files". Quite often you see: import x class Foo: def bar(self): import y # break circular import y.something() Would be nice to be able to import `
281.
▲
by
stabbles
3y ago
C++ is really becoming easier to use! compiler error: you have to match the flags of that one dependency you're not familiar with and you didn't even compile yourself, rookie!
282.
▲
by
stabbles
3y ago
Yeah, that'd make a lot of sense. With Fortran mod files I believe it's not even backwards compatible for a single compiler: gfortran. If it's not standardized, you end up recompiling the world, which defies the point.
283.
▲
by
stabbles
3y ago
The suggestion there (uid = gid = 1000; uname = user; gname = users) isn't great. Just use uid = gid = 0, and omit uname/gname. If you're distributing software via a tarball, the uid/gid bits are meaningless. They only m
284.
▲
ComPile: A Large IR Dataset from Production Sources
(arxiv.org)
1 points
by
stabbles
3y ago
|
0 comments
285.
▲
by
stabbles
3y ago
In Bash, just use `tool --help |& less` by default :) Saves a few characters compared to 2>&1
286.
▲
by
stabbles
3y ago
This would be easier to follow with some diagrams...
287.
▲
by
stabbles
3y ago
The issue is that Make isn't particularly well suited to figure out properties of C / C++ compilers, or how to locate and link dependencies. That's the main reason Autotools and CMake exist.
288.
▲
by
stabbles
3y ago
GNU Make is still being developed. What features are you talking about? IMHO GNU Make is pretty complete, and it shouldn't change drastically. Also note that ninja exists as an alternative.
289.
▲
by
stabbles
3y ago
This tutorial is out of date: # Search for the "-i" flag. MAKEFLAGS is just a list of single characters, one per flag. So look for "i" in this case. ifneq (,$(findstring i, $(MAKEFLAGS))) echo "i was
290.
▲
by
stabbles
3y ago
Also, don't include generated C files when distributing the package. It's notoriously non-forward compatible with Python, and generating C code takes much less time than compiling, which has to happen anyways.
291.
▲
by
stabbles
3y ago
With -std=c89 you shouldn't need that `int k`, right? Further, you can add includes on the command line cc -std=c89 donut.c -include stdio.h -include string.h -include math.h -lm Then the source can be left as is.
292.
▲
by
stabbles
3y ago
The question is, is this statement binding for 10 years, or can they "kill" it within a couple years?
293.
▲
by
stabbles
3y ago
Their fans also rather noisy. Although you shouldn't be able to hear your neighbors heat pump, I've experienced a rather annoying issue where the fans hit the exact eigenfrequency of the walls, only amplifying the noise inside.
294.
▲
by
stabbles
3y ago
It'd be great if more people had the audacity to say they've solved all problems in an academic field and then leave that field, instead of referring to that popular image that shows how your PhD is only a small dent/addition
295.
▲
by
stabbles
3y ago
which are slow. If you wanna count the number of occurrences of a certain character in a string, you ultimately have to use popcount on an ordinary register, there's no corresponding SIMD instruction (at least in <= AVX2). Something
296.
▲
by
stabbles
3y ago
"minres outperforming cg" likely depends on the stopping criterion, since different norms are used.
297.
▲
by
stabbles
3y ago
Also Bjarne Strostroup said that this (pun intended) was a mistake, since often there is no "most important" object. If you want to do generic programming, it's much better to write f(a, b) instead of a.f(b). Suppose I'm
298.
▲
by
stabbles
3y ago
What problem does Docker's daemon actually solve? To me it always felt over-engineered.
299.
▲
by
stabbles
3y ago
How about Quantum Espresso [1] and CP2K [2]? They're both open source [1] https://www.quantum-espresso.org/ [2] https://www.cp2k.org/
300.
▲
by
stabbles
3y ago
Another way to debloat windows is not to have windows at all
More ›