Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
theseoafs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
theseoafs
11y ago
Comparing Nim to Lisps doesn't make much sense. Lists in Lisp are whitespace-separated, so `(- 1)` is different from `(-1)` for the same reason that `(a b)` is different from `(ab)`.
92.
▲
by
theseoafs
11y ago
Because it's nice to be able to use standard library C functions. It's so rare that you can actually use something in the stdlib rather than in an external library, and people are generally eager not to rewrite functionality whic
93.
▲
by
theseoafs
11y ago
I don't know if the distinction between which behaviors are "sane" and "insane" is a good one here. Evidently the only insane choice is to rebuff the standard in your implementation of the core C memory management f
94.
▲
by
theseoafs
11y ago
You already know it: the way you do this is with a homoiconic language. I don't know of any "formalisms" of homoiconic languages, but there's always Scheme. I don't know why this idea is relevant though. If where yo
95.
▲
by
theseoafs
11y ago
You can't, not with Haskell. (Maybe you can, I don't know, with some really insane extensions and type-level programming. It wouldn't be nice.) Haskell's approach is: write out the typeclass and the implementations, a
96.
▲
by
theseoafs
11y ago
\ö/
97.
▲
by
theseoafs
11y ago
Well, obviously, a game state can change even if a player had no input. So you would have to have some concept of an empty player input on your model. (Also, modern games often require pulling from databases, remote servers... It's not
98.
▲
by
theseoafs
11y ago
Coffeescript compiles to JavaScript for a reason though. No language ever has a reason to compile to C unless your platform is really goofy.
99.
▲
by
theseoafs
11y ago
Those same people also understand that the word "pussy" means "vagina". I refuse to believe that everyone is truly under the impression that these are two completely independent words with no relation whatsoever. This is
100.
▲
by
theseoafs
11y ago
The only outrage I'm seeing here is yours. Regardless of the ancient linguistic evidence you want to trot out, "pussy" is a gendered term in this day and age. It just is. And using gendered terms as insults is going to make p
101.
▲
by
theseoafs
11y ago
> If my sister wants to buy her new phone with bitcoin she should be able to do so. She doesn't, so give her real money.
102.
▲
A Simpler Approach to Functional Programming
(rickystewart.wordpress.com)
5 points
by
theseoafs
11y ago
|
0 comments
103.
▲
by
theseoafs
11y ago
What number is this? 100000000000000
104.
▲
by
theseoafs
11y ago
Well, for one, unions have defined behavior in C, while passing pointers around and casting them randomly doesn't. I don't know if this is the best example. Generally you see unions in C to cover "tagged unions", I.e. Th
105.
▲
by
theseoafs
11y ago
I don't know of any general purpose concurrent collectors which have no stop-the-world phase.
106.
▲
by
theseoafs
11y ago
f()
107.
▲
by
theseoafs
11y ago
I read the article. I don't know if the author has considered the implications of what he wrote. What we're talking about is: * Treating all memory accesses as if they were defined * No dead code elimination * Treating all pointer
108.
▲
by
theseoafs
11y ago
The compiler for this language will be too slow to be useful. Contrary to this author's belief, crypto people really do care about performance. Anyway, what the author wants isn't a "boring C" compiler, it's a comp
109.
▲
by
theseoafs
11y ago
I don't think that `auto` is what you hate; what you hate is operator overloading. It's impossible to tell what all those operators are doing because operators are endlessly overloadable in C++. If you make all type declarations m
110.
▲
by
theseoafs
11y ago
#define defmax(name, type) type name(type a, type b) { return a > b ? a : b; } This seems to be exactly how you would define a "generic" max function in Go with the current tooling, too. Which is a shame because C macr
111.
▲
by
theseoafs
11y ago
This sounds like a joke but this is exactly the proof that sorting is in NP.
112.
▲
by
theseoafs
11y ago
So are Lua and Python and Ruby, but they're not "inconsistent".
113.
▲
by
theseoafs
11y ago
Nah. Some interfaces are purely functional.
114.
▲
by
theseoafs
11y ago
How do you suppose that charities work?
115.
▲
by
theseoafs
11y ago
Have a look at your mobile layout. This looks really bad on an iPhone 6.
116.
▲
by
theseoafs
11y ago
> Is manual resource management with linear types a must? Because that's a big bummer. Manual resource management is generally a given in functional languages with linear types. Since your types are linear, you need functions which
117.
▲
by
theseoafs
11y ago
7.5m visits per day. What does that mean, page loads? Stack Overflow isn't a static website. One page load is a lot of requests to the service. Stack Overflow is a very dynamic site, and a lot of requests are made after you actuall
118.
▲
by
theseoafs
11y ago
I think the point that they're trying to make is that it's best to use a non-overloaded word for this kind of thing, but that that ship has sailed since C++ has been around for 30 years or whatever. So making no change is prefera
119.
▲
by
theseoafs
11y ago
A lot of us have apps that are beyond the performance requirements of Stack Overflow?
120.
▲
by
theseoafs
11y ago
All of this can be neatly summarized as "a noun is either an unsigned integer or a pair of two nouns". The authors apparently love to give things funny names and weird syntax, but there's nothing here that Lisp didn't d
More ›