Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
psykotic
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
151.
▲
by
psykotic
12y ago
Not a fan of handling it that way. Shift-reduce conflicts don't correspond to people's intuitive understanding of the grammar because good shift-reduce parser tables are highly non-local as they're constructed from fixed-poin
152.
▲
by
psykotic
12y ago
For unrestricted CFG parsing, shift-reduce parsing does require backtracking. A modern parsing algorithm like GLR uses LR tables but has to resort to backtracking when it encounters shift-reduce conflicts (it avoids the exponential blow-up
153.
▲
by
psykotic
12y ago
> The number of languages that I've seen with a proper numeric tower that aren't Scheme (or direct descendants of Scheme like Racket) are zero, so "OO makes it hard to do something almost no one ever does"...? It does
154.
▲
by
psykotic
12y ago
> OO is wonderful; try writing some programs in a language that forces you to do proper OO (e.g. Smalltalk). Have you tried implementing a numeric tower with proper OO in Smalltalk? Would you describe the experience as wonderful and the
155.
▲
by
psykotic
12y ago
Thanks, I didn't know about the GUD rewrite. After I wrote my post above, I started work on a GDB mode from scratch. So far, I have the process management and a PEG-based parser (peg.el is great) for MI output working. I'm not sur
156.
▲
by
psykotic
12y ago
The QtCreator debugger is actually pretty decent, and I prefer it to gdb -tui and cgdb. The debugger in the early-access version of CLion looks promising, but it lacks essential features like a disassembly view and a memory view, and sadly
157.
▲
by
psykotic
12y ago
> For instance C doesn't let you retrieve the 64-bit result from a 32x32-bit multiply. You have to cast the operands to 64-bit first to get the result even though the hardware provides the answer you want without any extra steps. An
158.
▲
by
psykotic
12y ago
If you care about optimizing your C/C++ code, you need to be reading the assembly language output from the compiler on a regular basis. You will constantly stumble over cases where the compiler isn't doing what you expected. For e
159.
▲
by
psykotic
12y ago
I know programmers who fit your description but they are rare. I'm talking about extremely high-paid contract developers who operate as individual contributors and not as hands-off consultants. Those guys are brought in as firefighters
160.
▲
by
psykotic
12y ago
> Not exactly what I would cite for sane code. The uses of goto I saw compensate for C's lack of nested breaks and continues. Reasonable people may differ on this topic, but I'm perfectly fine with it. The real sin is obfuscati
161.
▲
by
psykotic
12y ago
It's sane enough that Adam Dunkels wrote a functional if minimal TCP/IP stack using this style of coroutines: http://en.wikipedia.org/wiki/UIP_(micro_IP) Edit: He more recently wrote the Contiki operating sys
162.
▲
by
psykotic
12y ago
> Why does a rather trivial construct like this require an arcane label like 'fixed-point combinator'? Because that's what it is. I'm trying to communicate to people who know basic ideas from computer science. This is
163.
▲
by
psykotic
12y ago
You can easily write a fixed-point combinator for this: https://gist.github.com/pervognsen/eca3bc833a65195f053c . The way you tie the knot in C++ type recursion is not that different from in other languages like Haskell
164.
▲
by
psykotic
12y ago
If the mass objects have trivial (ignorable) destructors and don't own any heap-allocated subobjects then it's not a problem. You can have top-level objects like levels or documents or sessions own everything directly and indirect
165.
▲
by
psykotic
12y ago
Release cascades can be a big problem even with plain old RAII in C++. I once diagnosed a performance issue in a C++ network server where the server listening thread would sometimes temporarily hang when clients disconnected. The culprit t
166.
▲
by
psykotic
12y ago
> So when I see "Don't let T&& fool you here - T is not an rvalue reference" -- yes it fricking is! T&& is only an rvalue reference when T is a non-lvalue-reference type. If T = U& then T&& = U&
167.
▲
by
psykotic
12y ago
Yeah, I work on VR and know of alternatives to stereoscopic displays. I still maintain that the writer is wrong and doesn't understand what they're describing: "On Oculus Rift and pretty much every other virtual and augmented
168.
▲
by
psykotic
12y ago
You're not wrong, but I still think the article is wrong. They are probably paraphrasing a statement from Magic Leap and miscomprehending it in the process. > So you might have fun wondering how to build something that doesn't
169.
▲
by
psykotic
12y ago
The article is wrong. What they're clumsily describing there sounds like Google Glass style AR.
170.
▲
by
psykotic
12y ago
> And conversely, some of the most "happiest" place on earth, according to their citizens own estimations in polls, are places with tragic poverty and harsh conditions. That's very far from my recollection of those polls w
171.
▲
by
psykotic
12y ago
Two possible reasons: Seattle is the largest tech center outside of the Bay Area, and the cost of living is still manageable.
172.
▲
by
psykotic
12y ago
There's been so much negative exposure of Singapore's human rights record that I'm surprised this revelation is what makes you flip the bit. It's completely in line with policies the PAP has been implementing since indep
173.
▲
by
psykotic
12y ago
> Will the company be worth billions of dollars? Probably, because we're going to be the first movers on our platform. You crack me up, Greg. "Don't be evil" was memorable and conveyed an ethos. It was an explicit pok
174.
▲
by
psykotic
12y ago
That's basically what I ended up doing. After I got rid of the books, I imposed a rule on myself that except for rare cases where the book itself is an extraordinary artifact I would only buy books to cut and scan. My previous books we
175.
▲
by
psykotic
12y ago
> owning your own books has significant advantages, which I hope need not be restated here. I had to get rid of several hundred of my books years ago when I went traveling. It was tough since I had a lot of attachment to my physical book
176.
▲
by
psykotic
12y ago
Fabian isn't a Valve engineer. He's an engineer at RAD who was contracted out to Valve. His beliefs are utterly sincere. He once threatened to quit RAD on the spot when he found out the main sales guy had gone to a predominantly m
177.
▲
by
psykotic
12y ago
If you mean his background was in computational biology, you must be thinking of David Shaw, not Jim Simons.
178.
▲
by
psykotic
12y ago
German developer Daedalic Entertainment has been putting out many high-quality point-and-click adventures in the classic Lucas Arts mold. Their most famous series is Deponia. I have a personal affinity for their two games in the Dark Eye fa
179.
▲
by
psykotic
12y ago
Turnabout is fair play. If they pretend a clause is non-negotiable, call their bluff by asking for fair compensation. "Sure thing! That means I will be off the job market for one year, so I will require an unconditional severance payme
180.
▲
by
psykotic
12y ago
> I still can't believe Americans are ok with non compete clauses in their contract if you accept that crap somebody will eventually try to enforce it. These and other anti-employee clauses (e.g. excessive IP assignment) persist bec
More ›