Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acmj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
acmj
4y ago
For a library, if the user input is wrong, throw an error or an assertion failure. It shouldn't be causing an uninformative segmentation fault which your library does. The fix is a trivial. Why so defensive?
32.
▲
by
acmj
4y ago
Probably many have written a vector header like this. It baffles me why this one reaches the front page of HN given that the implementation is not that great. A few problems (some have been mentioned by others as well). 1. not using "d
33.
▲
by
acmj
4y ago
Just curious – if you are asked to name some classical instrumentalists, who would you mention?
34.
▲
by
acmj
5y ago
> But if your code was truly performance-critical, you wouldn't be piecing it together with shell pipelines that cause a bunch of unnecessary forks, you'd write it in something like C instead. You are underestimating the powe
35.
▲
by
acmj
5y ago
The parent post said no E2EE for group chat. Telegram doesn't seem to support that according to the linked page. Telegram group video chat only allows up to 30 people for the time being, which is far too limited. Also, group chat is no
36.
▲
by
acmj
5y ago
My biggest complaint about all scandum's sorting algorithms is that it doesn't support guaranteed inlined comparisons. Without this feature, the result depends on the compiler behavior, making the results hard to interpret. This p
37.
▲
by
acmj
5y ago
It has driven me mad that the tech world no longer cares about backward compatibility. Sometimes breaking backward compatibility may be justified by a steep cost on maintenance, but this FTP removal? It hurts a sizeable user base with littl
38.
▲
by
acmj
5y ago
> If they had gone out and bought more cars, yachts, and real estate, that's money that goes into mature industries with efficient supply chains that support the livelihoods of many people. The same can be said about rockets and s
39.
▲
by
acmj
5y ago
I am thinking more about sorting, say, 20-byte or 24-byte custom structs. Directly sorting arrays is probably faster than sorting pointers to arrays. At least in my applications, I rarely just sort numbers; I more often sort numbers along w
40.
▲
by
acmj
5y ago
In the source code, it is not apparent where the size restriction comes from. It seems to me that it can be easily modified to work with any data types. Maybe I am wrong. I am more concerned with this sentence: > Blitsort's perform
41.
▲
by
acmj
5y ago
You can go down the route to say C++ is largely a superset of C. You can always write C++ in the C way, so you don't see simplicity is an advantage of C.
42.
▲
by
acmj
5y ago
Think about compiling a large C++ program and its dependencies every time you run the generated executable. This is sort of like what is Julia is doing.
43.
▲
by
acmj
5y ago
This looks straightforward to me and probably to many C programmers. It is natural to write this as well as other styles you can come up with. Nitpicking is a bigger problem which distracts the attention to the real issue.
44.
▲
by
acmj
5y ago
There is https://ideone.com . I compared several similar services last year, including repl.it of course. I liked ideone better for some reason I forgot. PS: I have just checked repl.it again. Its UI has been changed a lot and it
45.
▲
by
acmj
5y ago
This would be my guess. MS just can't openly admit they censor in China even though everyone knows this is how they are allowed to operate in China, so they use "human error" as a bad excuse.
46.
▲
by
acmj
5y ago
Static compilation is not needed for numeric computing which Julia is great at. However, Julia is advertised as a general purpose language, which IMO is obvious in your "What is Julia?" section. You pose Julia as a mighty language
47.
▲
by
acmj
5y ago
IMO, if Julia lacks the necessary tooling, don't over-advertise it. When I say the lack of static compilation is a design problem, I mean such a critical feature should be in v1.0. Without it, many common tasks in other languages becom
48.
▲
by
acmj
5y ago
Sorry, I would like to keep my online anonymity.
49.
▲
by
acmj
5y ago
Couldn't agree more. What you said is a design flaw that the Julia community keeps denying. The Julia community also behaves defensively when it comes to performance. They refuse to accept that Julia doesn't compete with C/Ru
50.
▲
by
acmj
5y ago
I agree. The Julia community is defensive. When you criticize Julia, often their first reaction is to say you are doing something wrong or to convince you Julia is perfect for everything. I was enthusiastic about Julia but not anymore.
51.
▲
by
acmj
6y ago
The blog post criticizes existing software for their inaccuracy, but that is not their problem. The key signature of a particular passage may deviate from the overall key. I also wonder how they evaluate accuracy shown in [1] and what is th
52.
▲
by
acmj
6y ago
Thanks for the correction, but the key signature in a piece may be changing. Also, those with perfect pitch can tell the key signature from a short passage if there are few accidentals.
53.
▲
by
acmj
6y ago
I am no musician. I heard quite a few musicians, with or without innate perfect pitch, can tell the keys in a chord, though maybe not to the 100% accuracy. For example, something like what the kid is doing in this video [1]. I am a bit surp
54.
▲
by
acmj
6y ago
This increases code complexity. Also, for many applications, we prefer to have a max field for dynamic strings. Each type of string representation has its own pros and cons. This comes back to my original comment: there is not a universally
55.
▲
by
acmj
6y ago
I am not sure there is a universally better solution. If a function takes both string and its length (e.g. strncmp), there is no guarantee that the length is correct. Or like C++, you always represent a string by a (len,max,ptr) 3-tuple, bu
56.
▲
by
acmj
6y ago
If I were the maintainer, I would create cryptography2 and put the original cryptography into the bugfix mode. It is time to move to a safer language, but breaking backward compatibility is always bad.
57.
▲
by
acmj
6y ago
> a lot of the smartest software engineers I've known have a terrible tendency to over-engineer things. Your definition of "smartest software engineers" is the opposite of mine. In my view, over-engineering is the sympto
58.
▲
by
acmj
6y ago
Quite a few professional programmers evaluate the quality of code by "look": presence of tests, variable length, function length etc. However, what makes great code is really the code structure and logical flows behind. In my expe
59.
▲
by
acmj
6y ago
Only 1%? At least one per million, if not per billion (depending on how you count the denominator).
60.
▲
by
acmj
6y ago
> the actionable medical returns have been relatively tiny and industry continues to not invest in sequencers for a good reason I agree with this, but I disagree with the following: > most of the progress did NOT come from HGP data
More ›