Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
seabee
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
seabee
12y ago
Unlike most esoteric algorithms, American flag sort is actually pretty useful in its niche of string sorting.
62.
▲
by
seabee
12y ago
I can give you the short article: M:N is great for maximising throughput, at the expense of fair scheduling. If you want any kind of fair scheduling, make sure you 'yield' often. Hope you're using a language that helps you wi
63.
▲
by
seabee
12y ago
In the cold light of day I agree, but we're not robots; discussions have an emotional aspect to them and sometimes an emotional response needs to be expressed. You can't be that person who tells everyone "you're doing it
64.
▲
by
seabee
12y ago
The entire C++ language is an unsafe block. I think you're trying to be funny, but you missed the point. A concrete example of safety is that Rust can tell you if you reference memory from an arena after the arena goes out of scope. C+
65.
▲
by
seabee
12y ago
Ugh. This is what is wrong with any discussion with performance; someone who only ever builds CRUD apps wades into the conversation spouting junior level truisms and raises the noise floor for those of us who have done steps 1 thru 3. This
66.
▲
by
seabee
12y ago
No, you can do that, and can do so safely (if you implemented the unsafe parts correctly, at least). For example, here's an arena allocator crate: http://doc.rust-lang.org/arena/
67.
▲
by
seabee
12y ago
You'd have to mitigate against the Sybil attack. Crowd funding is one way (ironic since I think you meant crowdsourced?) but as we know from SEO optimisation, all that does is force you to pay to get your spam/malware promoted.
68.
▲
by
seabee
12y ago
Given the tax accountants and lawyers help draft these laws, there is every reason to be suspicious of that!
69.
▲
by
seabee
12y ago
There are two outcomes of your argument: 1) a functioning Newtonian universe is impossible 2) functioning Newtonian universes are infinitely complex The laws of physics already established 1, making 2 a moot point.
70.
▲
by
seabee
12y ago
Internet eugenics^W^W Hellbanning is a lot easier to justify when pseudonymity makes it easy to pretend everyone is a healthy WASP male like you are. That said, signal-to-noise still needs to be maintained. I think the ability to resurrect
71.
▲
by
seabee
12y ago
I agree. Sometimes we do take the reductionist approach, take the Apollo guidance software or seL4 as examples. However, when winging it gets you results that are almost as good in a fraction of the time, you can't be surprised at the
72.
▲
by
seabee
12y ago
The disadvantage of C++ templates is the structural type is implicit - you only know if the input object satisfies the type if you read the documentation, code, or can decipher the error message that occurs if it didn't. Concepts would
73.
▲
by
seabee
12y ago
The idea is you never push your feature branches, they exist on your machine only - same as the stash. If you are concerned about force push then make sure people understand the workflow and/or enforce branch creation policies on your
74.
▲
by
seabee
12y ago
In my favourite homoiconic language, Racket (also in lisps, so it's surprising that OP didn't mention it) you'd typically accomplish it with parameterised dynamic binding. Think global variables, except the lifetime of the ne
75.
▲
by
seabee
12y ago
It definitely has a tangible effect. For example the National Rail going east of Liverpool Street runs equidistant to the Central (to zone 4) and District lines, and has more 'person under train' incidents. Whenever such an incide
76.
▲
by
seabee
12y ago
People trust Apple and nobody else can read their code. This suggests open source is not necessary to build trust.
77.
▲
by
seabee
12y ago
It depends on the hash table. Cuckoo hashing is a lot easier since you can resize and reorder the buckets concurrently in a new array, exposing it to new readers is a single pointer swap. When you have a linked list of buckets you have a lo
78.
▲
by
seabee
12y ago
It's a bad idea if you don't have a well-defined mode of operation; for example, you're fine if the hash table uses copy-on-write semantics.
79.
▲
by
seabee
12y ago
The difference is safe-by-default languages force you to turn off the safeties before they will let you blow your own foot off. C++ doesn't believe in safeties since (at the time the language was designed) it introduces an unacceptable
80.
▲
by
seabee
12y ago
Using string_view in this example doesn't solve the use-after-free bug. If you are concerned about memory safety, the only appropriate choices are to copy the string and have the string_view objects share ownership, or to use the primi
81.
▲
by
seabee
12y ago
Readability is about how quickly you can figure out what's going on. There are only a few bits of syntax you need to know what's going on in the first example, but it requires mentally matching together the angle brackets correctl
82.
▲
by
seabee
12y ago
It's very similar to Racket, and yes, it is nice to use! Other systems can get you much of the way there (node, Python are the only ones I'm really familiar with) but I suspect you need a little language help to achieve the same k
83.
▲
by
seabee
12y ago
The only place I have seen this kind of code history integration is Visual Studio 2013 Premium which requires Windows, TFS, and that you bought the Premium version!
84.
▲
by
seabee
12y ago
Unless case law is created in the small claims court, having specific regulations for things which normally end up there is very beneficial for consumers. It gives you a tool to fight the disease - the company committing fraud - rather than
85.
▲
by
seabee
12y ago
Places are about parallelism. For concurrency specifically, the most interesting features are threads, channels, and futures and can all be found here: http://docs.racket-lang.org/reference/concurrency.html Distributed
86.
▲
by
seabee
12y ago
C++ is the counterexample in nearly all such cases, for better or worse!
87.
▲
by
seabee
12y ago
To me it feels like the majority of progress and innovation in tech is in startups, but the majority of activity is uninnovative. For example, a lot gets done in the enterprise software market, though most of it is very boring and uncreativ
88.
▲
by
seabee
12y ago
When you update the kernel and your program stops working, there are two possibilities: 1) it's a kernel bug; there is a regression in the kernel's documented behaviour 2) it's a bug in your tool because it took advantage of
89.
▲
by
seabee
12y ago
If a bug causes behaviour that everybody expects, is it still a bug?
90.
▲
by
seabee
12y ago
/dev/random is a CSPRNG with finite output over a fixed time period, so it is susceptible to denial-of-service attacks.
More ›