Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jjnoakes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
571.
▲
by
jjnoakes
8y ago
Not really; there's a few substantial differences between shared objects with SONAMEs and link-time vs run-time file system names and LD_LIBRARY_PATH and /etc/ld.so.conf vs DLLs and searching PATH (starting with "."
572.
▲
by
jjnoakes
8y ago
Right - and so you get same situation that you have in C++-land (if I'm understanding you correctly) where compiling arbitrary rust programs with the distro compiler level may benefit you if you want to depend on the system-provided ru
573.
▲
by
jjnoakes
8y ago
The biggest reason (for me anyway) to restrict which gcc I use (and stick to the system-provided one) is so I don't need to distribute libstdc++ and libgcc_s with my program. The RedHat devtoolset was a nice solution to this (use a new
574.
▲
by
jjnoakes
8y ago
I'm in a similar situation. I am cautiously optimistic that "mrustc" can help in this area. Compiling rust to C++ seems like the right direction for the more esoteric operating systems and platforms.
575.
▲
by
jjnoakes
8y ago
In many cases the question mark operator can propagate errors for you. It is both explicit and non-verbose.
576.
▲
by
jjnoakes
8y ago
> You simply cannot constrain the entire software world to operate in a file-oriented, declarative manner. You can, if the community wants to go in that direction. Ideally the software which loads "plugins.xml" is updated to su
577.
▲
by
jjnoakes
8y ago
> It's unclear to me why the original cutter would not envy the new slices The original cutter gets second choice of the "trimmed" section's 3-way split, so your 1/1/1 doesn't go to 1/0.5/1.5,
578.
▲
by
jjnoakes
8y ago
If you can deliver responses 10x faster than required, you can scale with 10x fewer resources (or at least presumably some factor of fewer resources) and still stay within the user requirements. I'd say that's a nice advantage.
579.
▲
by
jjnoakes
8y ago
It isn't wrong if that was the order the bytes were packed on the sending side.
580.
▲
by
jjnoakes
8y ago
The beauty of lisp-like languages isn't in the visual appearance of the code as text (the parenthesis and layout), but in the structure of the code as trees, the uniformity, and the homoiconicity.
581.
▲
by
jjnoakes
8y ago
This is cool. I never actually realized that magic squares exhausted all of the sums to 15; in other words, there is no triplet which sums to 15 and is not already a row, column, or diagonal. No false positives, so to speak. I wonder if thi
582.
▲
by
jjnoakes
8y ago
Some of the products look the same... Is this the same company or something?
583.
▲
by
jjnoakes
8y ago
Is this always true? If the shared library you linked to uses symbol versions and the bug fix requires a new version of a symbol, the application has to be relinked anyway. Same as static linking, except now it is not obvious you need to re
584.
▲
by
jjnoakes
8y ago
The solution to this seems trivial, no? Don't allow cases to be brought in courts if the identity of the plaintiff can't be verified?
585.
▲
by
jjnoakes
8y ago
I'm using something I hand-wrote, but thanks for the pointer.
586.
▲
by
jjnoakes
8y ago
I mean in python, one can ask a function what it was originally defined as. Sounds like in F# one can not, so that's why there's a difference in python between "var x = lambda..." and "def y(): ..."; the latter
587.
▲
by
jjnoakes
8y ago
In F#, can you ask a function object what its original name was? If so, what is the original name of "test1" and "test2" in your example? That's what python is doing and why the two are different. (I don't thin
588.
▲
by
jjnoakes
8y ago
Many of the suggested alternatives to lambdas in the article are non-imperative though... they just don't use 'lambda'.
589.
▲
by
jjnoakes
8y ago
I have a similar script. It downloads my google docs in Word and Excel formats.
590.
▲
by
jjnoakes
8y ago
I hate ads as much as the next guy. This cat-and-mouse game has been going on for as long as I can remember. But I have to wonder why the ad networks don't require content creators to place some "ad libraries" into the web se
591.
▲
by
jjnoakes
8y ago
For me personally, smaller file sizes and less verbosity both improve readability.
592.
▲
by
jjnoakes
8y ago
> True, but you have missed the part that makes C++ safer than C. Of course C++ is safer than C. I was just responding to what I quoted, which unfairly lumps "unsafe" and "C" in the same turn of phrase, implying that
593.
▲
by
jjnoakes
8y ago
> A big part of C++'s culture was that we don't need to write unsafe C code unless we really must In C++ you don't have to drop down to "unsafe C code" to lose lots of safety guarantees (like data races, iterator
594.
▲
by
jjnoakes
8y ago
> The only price to pay is give up objects There's other prices to pay, of course. Rust doesn't target as many systems as C++, for example. Adding Rust to a project means someone has to update your build/ci/cd/et
595.
▲
by
jjnoakes
8y ago
Why are the only two options "do nothing" and "throw them in prison"? Shouldn't there be a middle ground here?
596.
▲
by
jjnoakes
8y ago
Do you let the people who have "no idea what they are doing" write functions too? Put code into production? You pay them right? You train them? Why not teach them about macros and have code reviews on things they submit, just like
597.
▲
by
jjnoakes
8y ago
If you really know c++, then you know it is not easy to write safe code. It is easier than it used to be, for sure, but not yet easy.
598.
▲
by
jjnoakes
8y ago
https://news.ycombinator.com/item?id=8863
599.
▲
by
jjnoakes
8y ago
> It's pass-by-reference 101. Is it though? Slices seem to be passed by value, where the value is a pointer and some bookkeeping information (like a C struct of (data, len, capacity)). Some operations manipulate just data (which is
600.
▲
by
jjnoakes
8y ago
Why do we need a physical key though? Why don't browsers communicate the url to the password/totp app, and the app only respond or allow fill-ins for matching domains?
More ›