Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adwn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
71 ms
·
931.
▲
by
adwn
6y ago
I agree with regards to lock-free not being faster than lock-based, but that: > replace threads with separate processes that communicate via ring buffers does not follow at all. Interprocess communication is always more work to set up
932.
▲
by
adwn
6y ago
> [...] if you wrap the semantics in a library, and use the library, you get the same reliability from it. Wrong. Rust offers more tools for checking that your library is used correctly than C++ does. First and foremost, the borrow c
933.
▲
by
adwn
6y ago
For what it's worth, I think it's great that you are willing to at least reconsider the pros/cons of Rust when presented to you, even if it's not enough to change your mind. I believe your issue with the "Rust hype&
934.
▲
by
adwn
6y ago
> I embed web tech Wait, you're working with web tech – probably the most archetypal field where preventing security vulnerabilities is the top priority – and you don't see the benefit of using Rust instead of C?
935.
▲
by
adwn
6y ago
> [...] to throw away my time and play with toys. Rust is not a toy. It's possible that your prejudice stops you from seeing Rust's benefits. It's also possible that you're working in a niche where Rust's advan
936.
▲
by
adwn
6y ago
> Yes, I know--offering obvious expository answers to obviously rhetorical questions is how discussions work around here. ;) That's not the point. It's okay to pose rhetorical questions, and it's okay to address a specif
937.
▲
by
adwn
6y ago
> * Thanks, but those questions were meant as exercises for the poster I replied to. ;)* That's not how discussions work around here. And, frankly, you sound a bit condescending.
938.
▲
by
adwn
6y ago
> C / embedded developers Embedded developers use C because they have to , not typically because they want to . And they have to use C because of proprietary toolchains and existing libraries, among other similar reasons. Good r
939.
▲
by
adwn
6y ago
> There is little of needless code in standard library. And what there is, believe me, over the decades was really polished. Wrong. Counter-example: locales [1] Also: String handling, which is responsible for so, so, so many security
940.
▲
by
adwn
6y ago
You're misremembering a detail: the term isn't "slap drone", but "drone slapped" – as in, you'll be slapped with an electronic ankle bracelet in drone form. That drone doesn't necessarily have to phys
941.
▲
by
adwn
6y ago
If I had written "Marak doesn't want to prevent big companies from using their code [...]" , the gender-neutral "their" could have refered to the companies' code, giving the sentence a different, incorrect mea
942.
▲
by
adwn
6y ago
> Just change the license if you don't want to license it freely to big companies! Marak doesn't want to prevent big companies from using his (?) code, he's saying that he won't support them for free anymore. Read
943.
▲
by
adwn
6y ago
Did you mean to reply to someone? Because your post doesn't fit the original link at all.
944.
▲
by
adwn
6y ago
In what way does Smalltalk embody the concepts underlying biological cells and systems? Note that objects sending messages to other objects has very little to do with that – it would look more like lots of identical objects emitting lots of
945.
▲
by
adwn
6y ago
> It's easy to dream and blame, it's harder to build and lead by example. It'd be great if this post was a "why XXX" page in the documentation for a new platform which implements the said ideas. That's bec
946.
▲
by
adwn
6y ago
Not that much, but I imagine a lot of bars would spring up in the vicinity of iron electrolysis plants, on account of the steady supply of cheaply transported beer.
947.
▲
by
adwn
6y ago
Yes, but then there's also no use for the empty trucks en route the brewery.
948.
▲
by
adwn
6y ago
> the trucks that transport beer are often empty on their way to a brewery. You have to transport the iron oxide back to where it can be recycled. That's the "advantage" of burning fossil fuels: most of the combustion pr
949.
▲
by
adwn
6y ago
Well, of course it's possible : The widgets can be stored in a tree-like data structure, which is constructed and modified by the UI editor, can be loaded and stored in a file, and is interpreted by a runtime which calls the correspon
950.
▲
by
adwn
6y ago
Ray-tracing is absolutely trivial to parallelize, because every pixel is computed independently of all others. That would even be trivial to parallelize in C, and that's saying a lot!
951.
▲
by
adwn
6y ago
That is misleading. Although you're technically correct [1], the computational models on which computational complexity classes are based are so abstract and idealized, that they offer almost no information whether your program could m
952.
▲
by
adwn
6y ago
> To this day it has the best implementation of parallelism; one can achieve a 7x speedup on 8 cores by adding a handful of lines to a program. Eh, you can achieve the same in Rust using rayon, this isn't exclusive to Haskell or F
953.
▲
by
adwn
6y ago
> In particular, a few years ago it seemed like the people implementing parallel Haskell features didn't understand or care about fundamental things like cache locality. That's the main issue which FP-for-parallel-execution p
954.
▲
by
adwn
6y ago
> A sane language already includes plenty of standard functions, but that doesn't relieve the need for more. The difference is that I write new functions on a daily basis, while I almost never need new control flow constructs. And
955.
▲
by
adwn
6y ago
> The other property these languages share, once you get past the initial barriers to entry, is a certain sense of enablement and power. That's the thing that Lisp/Smalltalk/Forth/Tcl proponents, who lament the unpo
956.
▲
by
adwn
6y ago
If you define your own, say, repeat-until loop, can you use the built-in break and continue commands? Could you define a break-with-value command for the built-in loops?
957.
▲
by
adwn
6y ago
Yes, you're probably right. Frankly, I'd rather not have this kind or error-prone behavior in my programming languages, not even when scripting. It makes proper handling of strings hard and cumbersome (as evidenced by a lot of sof
958.
▲
by
adwn
6y ago
Python: a = print a("Hello World") Rust: fn puts(s: &str) { println!("{}", s); } let a = puts; a("Hello World"); C++: #include <cstdio> auto a
959.
▲
by
adwn
6y ago
Aesthetics is always subjective, but it's safe to say that most people today would find Motif to be rather ugly.
960.
▲
by
adwn
6y ago
For what it's worth, whenever I tunneled X over a non-local SSH connection, it was slow as molasses. That's because almost all contemporary GUI applications render to a bitmap anyway. Those that actually use the outdated X vector
More ›