Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
theseoafs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
301.
▲
by
theseoafs
13y ago
Cellular automata are one of the things you study in automata theory, which is the study of different models of computation. Although cellular automata are of some interest (Game of Life is Turing-complete, etc.), I wouldn't say they&#
302.
▲
by
theseoafs
13y ago
No, it can't. As in, you cannot parse HTML or C with regular expressions, and you can prove that that's the case. Regexes simply aren't powerful enough. This is one of the advantages of studying formal languages -- you get
303.
▲
by
theseoafs
13y ago
The big reason is that different languages do different things well, and new languages try to capture the good traits of other languages or language families. Maybe you like the JVM and the surplus of packages that are available for it, bu
304.
▲
by
theseoafs
13y ago
I like 30 seconds. Call the service SmallTalk. If you get sufficiently popular, you could advertise on Who Wants to be a Millionaire. "You've chosen to use your 'phone a friend' lifeline. Remember, you only have 30 s
305.
▲
by
theseoafs
13y ago
> by the time you hit the point where you need a NoSQL solution to handle scaling issues See, people keep saying that NoSQL databases give you a performance boost over traditional relational solutions (MySQL and Postgres), but exactly wh
306.
▲
by
theseoafs
13y ago
What was it?
307.
▲
by
theseoafs
13y ago
Off the top of my head, Lua uses primarily 1-based arrays. (Of course, Lua arrays are actually associative arrays, so negative numbers and 0 are also valid indices, but all the standard library functions except your arrays to start at 1.)
308.
▲
by
theseoafs
13y ago
You are quite obviously not in the target audience of this machine if all your computing needs are being satisfied by an MBA.
309.
▲
by
theseoafs
13y ago
Are there any performance benchmarks? EDIT: The language looks pretty cool in general. I'm not a huge fan of the recursion syntax. In particular, the `this` keyword seems to just refer to the current function object, which is confus
310.
▲
by
theseoafs
13y ago
Well, the happy birthday article has a section on "union types", and that code block has the comment "# Here a can be an Int32 or Float64". I just assumed that this meant a had the type Int32 | Float64. If the language
311.
▲
by
theseoafs
13y ago
Well, the compile-to-C thing is one thing. It's possible to compile any language down to C. You could compile Brainfuck or Python down to C if you wanted. The question is how complicated the resultant code will end up being compared
312.
▲
by
theseoafs
13y ago
I was very excited by this when I read the description, because a compiled language that looks like Ruby is exactly what I've wanted. Unfortunately I'm not super excited by the quirks of the implementation. For example: if
313.
▲
by
theseoafs
13y ago
> It's basically a compile-to-C language right now as it is. No, it's actually not even close. The things that make Ruby slower than C are not just "implementation issues".
314.
▲
by
theseoafs
13y ago
... not to mention that off-by-one errors and other confounding bugs are really common when you loop through the elements of an array manually. That's all but impossible with map, filter, and reduce.
315.
▲
by
theseoafs
13y ago
And the overwhelming majority of those apps probably experienced a particularly nasty and expensive bug that was due to state (i.e. one that would have been very difficult or even impossible to replicate in a primarily functional environmen
316.
▲
by
theseoafs
13y ago
That's a poor characterization of why functional code is "useful". People write functional code in languages that have no support for multithreading all the time. (Further, functional programming isn't often used for c
317.
▲
by
theseoafs
13y ago
> This is not a requirement for being a "programmer." It never has been. Programmers program computers. We call them programmers because they program. If you can't write programs, you're not a programmer. What othe
318.
▲
by
theseoafs
13y ago
> Much as it pains me to do this, I cite Node.js as a counter example. People can and do write systems software using their understanding of Javascript as a basis. They may not do it well, but I know for a fact I could write certain type
319.
▲
by
theseoafs
13y ago
This is a nice, comfy thought but it's just not true. Programming and web development are entirely different things, and it doesn't have anything to do with barriers to entry or how apparently "difficult" each of these