Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
civility
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
121.
▲
by
civility
8y ago
You're working from old information. Show me a benchmark where Fortran wins over C or C++ any more. Those days are gone. Here's my line in the sand: https://benchmarksgame-team.pages.debian.net/benchmarksga
122.
▲
by
civility
8y ago
If Rust didn't have good runtime performance, it wouldn't be worth looking at over SML, Ocaml, or Haskell. > So let's get back to the performance of the code generated by the Rust compiler, shall we? "Shall we" j
123.
▲
by
civility
8y ago
> I never claimed this. No, the person I first replied to did. Then you jumped in and defended his position with your "yes and no" comment. > I don’t think we’re really gonna make any progress here so I’ll leave it at that.
124.
▲
by
civility
8y ago
You added to your comment while I was replying, so adding to what I said in the sibling reply: > Being able to implement something does not mean that by implementing it a different way, it will certainly be faster. Of course not, but if
125.
▲
by
civility
8y ago
What feature of Rust requires elaborate features or massive amounts of code? C++ has stack unwinding, you can implemented dynamic dispatch in C with function pointers, and Rust's match isn't that much above a switch statement. B
126.
▲
by
civility
8y ago
> Yes and no; Steve, this is a cop out. There's nothing in Rust that can't be implemented in C or any other Turing complete language, including stack unwinding, invoke, or anything else. It may be inconvenient for Rust to use
127.
▲
by
civility
8y ago
> Much of the problem is not quite related to Rust itself, but rather to the intermediate compilation artifacts that are fed to LLVM for final code generation. Considering clang generates LLVM IR and compiles much more quickly than Rust,
128.
▲
by
civility
8y ago
I do wish they were combined. It would be nice to handle arrays of structs and structs of arrays more gracefully, and it's unfortunate how the format strings almost (but not really) agree with each other. And so long as I'm askin
129.
▲
by
civility
8y ago
I disagree. The struct and array (not Numpy) modules are pretty great at cutting up binary data. You provide a format string and it just works.
130.
▲
by
civility
8y ago
> Well, as I far as I can tell, a significant portion of negative qualities attributed to Facebook also can be, have been, attributed to email. I disagree, for me this isn't about being addictive. Email doesn't quietly let web
131.
▲
by
civility
8y ago
Support issues with email? Everyone I know can handle email just fine. I consider the lack of emojis a bonus. Old school smileys are just fine by me. :-) (Actually, emojis work just fine with gmail, but I won't be embracing them an
132.
▲
by
civility
8y ago
> Facebook gives me the opportunity to maintain contact with my family who live on the other side of the world, as I walk the streets of São Paulo, for free. [...] The alternative (cel phone calls and sms) I use email to keep in contact
133.
▲
by
civility
8y ago
He's implementing his own language, so it seems it would be useful for debugging his own compiler. In other words, the IR he's generating is not really for anybody else, it's for himself.
134.
▲
by
civility
8y ago
Yeah, that works, but it's going to confuse more than half the people who ever look at it.
135.
▲
by
civility
8y ago
It's fine until you do almost any arithmetic using the index. Unsigned arithmetic is rarely what you want, and it quietly converts all of your signed types to unsigned giving you large positive values instead of small negative ones.
136.
▲
by
civility
8y ago
> you would only be able to have an element size of 1 byte Yes, when people point out this bug, it seems crazy. Who does a binary search of 1GB of sorted data which only contains values from 0...255 (or -128...127). I mean it is a bu
137.
▲
by
civility
8y ago
If your compiled code is thread safe, you can releae the GIL in your library and achieve parallelism with current CPython. If your compiled libraries are not thread safe, you can't get parallelism anyway. Maybe, if your heavy lifting
138.
▲
by
civility
8y ago
In my experience, CPython is 100 to 1000 times slower than C (or C++, Rust, Fortran, etc...). CPython would be better off fixing the speed (perhaps by embracing PyPy) and staying single threaded than removing the GIL. At least if you'
139.
▲
by
civility
8y ago
> "Pass by reference" is a specific term for a much different technique which is very rarely encountered these days. C++ isn't all that rare. I suspect we'll have to agree to disagree whether your definition of pass b
140.
▲
by
civility
8y ago
You're right, it is more like a pointer. In C++, that would call the assignment operator which can do anything it wants, but the address of the Object would not be replaced. Java would change the value of the pointer in the callee. T
141.
▲
by
civility
8y ago
I'm not sure if you think you're correcting me, but it sounds like you think you've got it all figured out. Java calls them "primitive types", btw.
142.
▲
by
civility
8y ago
I'm not sure what your point is...
143.
▲
by
civility
8y ago
Java primitives (short, float, double, etc...) are copied to the calling function, but arrays and objects are passed by reference. This is easier to explain in a language like C++, which can do either: // Java always does t
144.
▲
by
civility
8y ago
Are you after monkey patching, where you can add new methods outside of the class definition? That's not really a standard feature of all object orient languages - Java doesn't do that, for instance. Python integers are definitel
145.
▲
by
civility
8y ago
You're right that you can't perform swaps with a Python function, but it's never pass-by-value like Java primitive types. It feels like pass-by-value because int, long, float, complex, and string are basically immutable.
146.
▲
by
civility
8y ago
Python is not efficient, but the bug you described seems like a problem with that implementation of malloc...
147.
▲
by
civility
8y ago
The Cooley-Tukey algorithm is nicely understood as a "4 step FFT". Both the decimation in time and decimation in frequency algorithms, and the "bit reversals" they use, are really just special cases of the more general
148.
▲
by
civility
8y ago
I knew a guy who worked in an industry where using SSNs for identifying people was illegal. Their solution was to prefix the SSN with a leading one. Compliance.
149.
▲
by
civility
8y ago
> There's no mystery to how prior civilizations hit collapse events when I read comments like this. You're making my case for me. I'm sure there was some doom sayer in ancient Rome who predicted the world could never supp
150.
▲
by
civility
8y ago
Please make a prediction about what you think the current carrying capacity is. Then, assuming you live 40 more years, it'll be long enough for you to see you were wrong. People love their doom and gloom, but truthfully there is a lot
More ›