Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
PeCaN
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
481.
▲
by
PeCaN
10y ago
Error codes and longjmp are complementary methods of exception handling. Error codes can't handle every circumstance (well, at least not without undue pain). For example, error codes don't deal with nonblocking i/o or corouti
482.
▲
by
PeCaN
10y ago
You can't really tell if the stack overflowed in a constructor though, plus that will essentially /never/ happen, so I think it's okay to exclude stack overflows when creating stack allocated objects as failure condition
483.
▲
by
PeCaN
10y ago
That's basically everyone's sentiment in the Perl community right now. Perl6 is a nice language (I mean, I'm not a huge fan, but it's not bad either) but it's a language that has some Perl influences but is definite
484.
▲
by
PeCaN
10y ago
> What else is good about Perl, which is 1) not in Python/Ruby/JavaScript or 2) overly terse/clever? (Honest question) Scalar/list/hash context. It makes zero sense and the syntax seems to change randomly… until
485.
▲
by
PeCaN
10y ago
Intel also has patents on many x86_64 extensions and AMD has patents on x86_64 itself. I believe MMX expired recently, so a Pentium III level CPU could be implemented without infringing on ISA patents. Hitachi still has patents on SH4 (thou
486.
▲
by
PeCaN
10y ago
Shor's algorithm covers discrete logarithm also. But most modern asymmetric algorithms are based on elliptic curves and other problems that quantum computers don't help with.
487.
▲
by
PeCaN
10y ago
> Linux: Sleep. Wait for the kernel to wake you up when something happens so you can yell “IS ANYONE READY YET? HOW ABOUT NOW?!” at your file descriptors. > FreeBSD: Like Linux, but the API is less stupid. Yeah, I covered epoll (and k
488.
▲
by
PeCaN
10y ago
Yikes! NT kernel is far far far better designed than any * nix¹. POSIX is an API (and not a very good one), not a kernel type anyway. Windows has had a POSIX layer for a while. The NT kernel actually has its own API that both the Win32 an
489.
▲
by
PeCaN
10y ago
For what it's worth… I /do/ work for a very efficient company, and benefit from it relative to our competition. I'm not personally interested in Silicon Valley brogramming for social video sharing sites, but thanks for y
490.
▲
by
PeCaN
10y ago
> Are you saying that 3,000 years from now, neohumans will be using addictive chemicals that damage their body in order to modify their brain chemistry and induce related experiences? s/chemicals/electric currents/g or s&#
491.
▲
by
PeCaN
10y ago
At least these (seem to) result in a kernel panic instead of privileged escalation or reading unauthorized memory. But in a world where even djbdns had a (minor) security issue, I don't think it's reasonable to expect any non-triv
492.
▲
by
PeCaN
10y ago
OTOH, it takes a lot longer to become physically dependent on alcohol than opiates. But yes, don't mess with your GABA system unless you like seizures; and don't mess with your opiod system unless you like being miserable.
493.
▲
by
PeCaN
10y ago
The bad kind of impressive would be getting running ATMs on NodeJS. ducks
494.
▲
by
PeCaN
10y ago
OCaml already looks nice <_< (…Once you've used it for a bit. I admit it looks kinda weird at first.) I recall Reason didn't yet support some important part of OCaml syntax, but I don't remember what that was. Though I
495.
▲
by
PeCaN
10y ago
unwrap panics on failure; try! is equivalent to match somefunc() { Ok(res) => res, Err(e) => return Err(e) } in Rust; or res, err := somefunc() if err != nil { return err } in Go. Also, while I don'
496.
▲
by
PeCaN
10y ago
> if I could write code in go + rust generics + macros and not have to deal with the lifetime borrow checking crap, I would be so happy :-) You might like OCaml. It's easy to write like Go but with a much more useful type system. Do
497.
▲
by
PeCaN
10y ago
You're right, I got something backwards there! I suppose it's not that unnatural on second thought. Your examples are good, though the only ones that are moderately common in American English seem to be “drawing” and “crossing”.
498.
▲
by
PeCaN
10y ago
Do Brits use gerunds other than ‘working’ as nouns or is it specific to that case? Either way, that's really weird.
499.
▲
by
PeCaN
10y ago
Alternatively… "LIKE GOOD STUDENTS, COMPUTERS NEED TO BE ABLE TO SHOW THEY'RE WORKING" heh.
500.
▲
by
PeCaN
10y ago
I've never seen that before. Using a gerund as a noun seems very unconventional and incorrect almost by definition. Simply ‘work’ reads much better—is it really frequently used as ‘working’ in mathematics‽
501.
▲
by
PeCaN
10y ago
> I'm not going to explain the individual job functions of 50 people Good thing I didn't ask you to. > It says they had 3 product managers Seems like a lot of product managers for a company with one product which isn't
502.
▲
by
PeCaN
10y ago
You still didn't explain why they need that many people. What exactly _is_ required for “running something at the scale of Vine”? Yes, they have/had a lot of traffic, but traffic in and of itself does not require a large staff t
503.
▲
by
PeCaN
10y ago
I particularly like this quote: “[T]he major obstacle is not lack of machine capacity, but our inability to write programs taking full advantage of what we have.” Which is more relevant now than ever. It's interesting that at the time
504.
▲
by
PeCaN
10y ago
I… just got corrected by Cliff Click~! (You're like my language implementation hero (along with Mike Pall).) Vega sounds like it would have a nice niche in network processing. Shame it didn't find a big enough market. It was prett
505.
▲
by
PeCaN
10y ago
Azul has their own hardware for facilitating pauseless garbage collection with their JVM. I recall they have a pure software pauseless JVM now as well, but it's not nearly as high performing.
506.
▲
by
PeCaN
10y ago
Jane Street isn't an HFT firm, though I do agree that OCaml would be a much better language than Java (though the lack of manual GC tuning could be a dealbreaker).
507.
▲
by
PeCaN
10y ago
> Complete hyperbole. Nothing stops you from using a safe string library in C. Nothing technically stops you, it's just really hard . When even djb has suffered a string-processing-related bug¹ you can't reasonably expect
508.
▲
by
PeCaN
10y ago
Or crashing, for that matter. If your C HFT program crashes, someone is on the hook for tens of thousands, minimum . (Not saying Java doesn't crash, but it's a bit more rare and gives you more opportunity to not lose $$$.)
509.
▲
by
PeCaN
10y ago
Well… it's honestly because I don't give a shit about LZFSE and Apple can fix their own code. But I could also say that I'm lazy and it's not a big deal anyway.
510.
▲
by
PeCaN
10y ago
I downloaded a different Android browser (Lightning¹) that I set to send a desktop useragent and use that for redditing. Works nicely for avoiding reddit's impressively awful mobile site. ¹ https://github.com/anthonycr&
More ›