Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jblow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
361.
▲
by
jblow
10y ago
"Typically, desktop applications for each operating system are written in each's native language. That can mean having three teams writing three versions of your app. Electron enables you to write your app once and with web langua
362.
▲
by
jblow
10y ago
There's another factor: MMA fights are one-on-one in a controlled environment. If you get into a fight in a bar and take your opponent to the ground, his friend is going to kick you in the head and now you have a concussion. MMA fights
363.
▲
by
jblow
10y ago
Wait, you are comparing 4000 lines of code to 150 lines of code? How does that make sense? If you modify your example to 400 nested 10-line function calls, how does that change your comparison?
364.
▲
by
jblow
10y ago
Due to aliasing problems, you have exactly this issue in C and C++ as well, yet those languages are both massively faster than the languages in question.
365.
▲
by
jblow
10y ago
It is because, if Tesla allows it to happen, the media will attack them incessantly over these things because they smell a story (and because a lot of vested interests are willing to pay for PR). If you don't defend yourself in that ki
366.
▲
by
jblow
10y ago
There's free source code for basic Unicode operations all over the internet.
367.
▲
by
jblow
10y ago
Care to explain why you think it's hard? (For someone with a basic education in programming, say, someone with a bachelor's degree from a reasonable school). Exactly what part of this problem is hard?
368.
▲
by
jblow
10y ago
I watched that talk when it appeared on the HN front page, and I actually think the whole methodology he is talking about is misguided. I don't find any of the "incremental program understanding" stuff in Visual Studio to be
369.
▲
by
jblow
10y ago
Well, I think a lot of web programmers do not really know how to program. If someone is going to be offended that a potential employer asks them to reverse a linked list in an interview -- something that seems a bit trendy in the web world
370.
▲
by
jblow
10y ago
"Try adding an autoformatter like gofmt or IDE completion for Jai, and see how your parser changes (or if you have to write an entirely new parser)." It would not change at all, and I have no idea why you think it would, except to
371.
▲
by
jblow
10y ago
Well, you just need to call unicode_next_character all the time instead of saying s++, similarly for whitespace, similarly for asking whether a character can initiate or continue an identifier, etc. It does not change the basic nature of th
372.
▲
by
jblow
10y ago
If you can't write a lexer by hand, just forget trying to write a compiler that does anything interesting, because the lexer is MUCH easier than any other part of the compiler. There are a lot of reasons for this, but one of the basic
373.
▲
by
jblow
10y ago
I don't know what Ohloh is but it looks like it's some kind of web software, in which case I am totally unsurprised. Are you confident that the same programmers could have successfully built a line-counter if they built it using p
374.
▲
by
jblow
10y ago
Precedence is actually not hard. The way I do it is: (1) Parse everything as though it were left-to-right. (2) After each node is parsed, look at its immediate descendants and rearrange links as necessary. (Nodes in parentheses are flagged
375.
▲
by
jblow
10y ago
Yes, it is hand-written. The parser is MUCH easier to build than the interesting/new parts of the compiler are. Lexing is the absolute easiest thing, then parsing is 2nd place.
376.
▲
by
jblow
10y ago
Text parsing for programming languages is NOT a difficult problem. It is very easy actually, much easier than most academics would have you believe. What they are doing is trying to write theories and build conceptual systems about how to d
377.
▲
by
jblow
10y ago
Except no, lexing is trivial; it is by far the easiest part of writing a compiler. You don't need anything fancy, you just type in the code.
378.
▲
by
jblow
10y ago
The problem is that games designed to "stick over many months & years and monetize the player" are generally garbage, as far as the quality of the actual game goes. Of course these things are relative or subjective and what ha
379.
▲
by
jblow
10y ago
Indeed, I am kind of surprised at how many in the press are backing Gawker, after Denton straight-up threatened to use the site (and presumably others) for further blackmail. It is crazy .
380.
▲
by
jblow
10y ago
That's not the problem. The problem is any other live pointer could point into that array, for all the compiler knows. Unless the array was generated locally and never aliased, then if you ever call through some set of procedures that
381.
▲
by
jblow
10y ago
You can't pass an array to a procedure without it becoming a pointer. But that is not even the issue ... the issue is that even if you know something is an array, any pointer of any type could be pointing anywhere into the interior of
382.
▲
by
jblow
10y ago
No, because the comparisons are usually "baseline version of algorithm I want to beat" vs "highly optimized and hand-tweaked version of the algorithm I have a vested interest in."
383.
▲
by
jblow
10y ago
"... in the next phase, you too will be subject to a dose of transparency. However philanthropic your intention, and careful the planning, the details of your involvement will be gruesome." http://gawker.com/an-ope
384.
▲
by
jblow
10y ago
No. The way to ensure that your store works atomically is to specify the assembly output of the compiler. Reading what it is outputting right now doesn't matter, because how do you know when it is going to change its mind?
385.
▲
by
jblow
10y ago
The Carterfone was an early exception because of its functionality.
386.
▲
by
jblow
10y ago
It's a complex history, but it started with the government's prevention of what would have been an even bigger monopoly. https://en.m.wikipedia.org/wiki/Kingsbury_Commitment But for the most part, it is jus
387.
▲
by
jblow
10y ago
"absolutely disastrous"? I am 44 years old, which means I remember growing up at a time when you were not allowed to own a telephone -- because AT&T exercised its corporate monopoly to control what you could plug into your AT&
388.
▲
by
jblow
10y ago
Are you serious? The headline was "Peter Thiel is totally gay, people."
389.
▲
by
jblow
10y ago
I think their bald contempt for the legal process had a lot to do with it: http://gawker.com/a-judge-told-us-to-take-down-our-hulk-hoga...
390.
▲
by
jblow
10y ago
I think the problem goes deeper than "don't publish sex tapes". I have had a substantial number of news blog stories written about me, and I think among the general population of news bloggers there's a lack of professio
More ›