Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trealira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
601.
▲
by
trealira
3y ago
It's funny, because I'm the opposite. I have a habit where, when I see or hear someone I know coming, I quickly put my phone away and pretend I wasn't just on my phone, unless it's obvious, in which case I just put it aw
602.
▲
by
trealira
3y ago
What's worse is that people do genuinely advertise products they like, so it's hard to tell if a conversation is astroturfing. I've done the same thing. I see it particularly for video games and software. There's a meme
603.
▲
by
trealira
3y ago
There wasn't any new evidence, though, and the circumstances hadn't changed, other than the composition of the Supreme Court. Their argument was not that circumstances had changed, but that the the case was decided wrong to begin
604.
▲
by
trealira
3y ago
Why does that imply superiority? It's like you're saying "We humans are the smartest in the world. Smarter animals are better than other animals, so we're better than all other animals." A giraffe may just as well b
605.
▲
by
trealira
3y ago
On the rest of 4chan outside of /b/, you'll find lots of racist comments. Particularly on /pol/, but there are plenty even ignoring that board. You can report particular posts for breaking the "racism outside o
606.
▲
by
trealira
3y ago
If you have a Reddit account, you can opt out of the New Reddit design, so Old Reddit is displayed without the link needing to be prefixed with "old.*".
607.
▲
by
trealira
3y ago
Animals like newborn deer fawns are born knowing how to walk, follow their mothers around, and run away from danger, although their legs are weak at first. So this makes me wonder if having to learn object permanence is just one more exampl
608.
▲
by
trealira
3y ago
I actually think the variadic logical and is more readable, and wish more languages had it. As long as all the arguments are lined up vertically, you can think of it as a sequence of tests for true that exits at the first failure. It's
609.
▲
by
trealira
3y ago
Yeah. To sum two bits x and y, the immediate sum is x XOR y, and the carry is x AND y. That's how a simple half-adder circuit can be made.
610.
▲
by
trealira
3y ago
Something nice in C is that "if (x)" is always equivalent to "if (x != 0)". NULL is a macro for 0, and so is false. Boolean expressions evaluate to 0 if they don't hold. This isn't true in C++, though.
611.
▲
by
trealira
3y ago
Yeah, I really doubt people would read much more if they worked less. You need a combination of literacy and a longer attention span, and these qualities are strengthened by reading more often. If you go forever without reading a book, it&#
612.
▲
by
trealira
3y ago
I think there are cases where the functional style is more legible, but also cases where imperative style is more legible. I really think the imperative style is more legible in this particular case. This is why Haskell and OCaml allow impe
613.
▲
by
trealira
3y ago
I'm pretty sure it's like this in Pascal, too. Which makes sense, since it's the only way to reasonably index 1-based arrays. For example, you'd expect the following code to set arr to the set "1, 2, 3, 4, 5",
614.
▲
by
trealira
3y ago
I'm not a Common Lisp expert, but so far, I dislike the LOOP macro specifically because of its complex syntax compared to other Lisp macros and constructs. The DO macro is complex, but I'm pretty sure Emacs will write something li
615.
▲
by
trealira
3y ago
It seems like there used to be more of a paid, proprietary, GUI using culture for Lisp, too, in the form of Lisp machines and products like that. They used to not only advertise their programming environment, but also advertise Lisp machine
616.
▲
by
trealira
3y ago
It may be worth comparing this new JIT to fast implementations of dynamic languages, like LuaJIT or SBCL for Common Lisp (SBCL is an AOT compiler and not a JIT though).
617.
▲
by
trealira
3y ago
In English, it doesn't. The names of those continents are North America and South America. It feels weird to them because they're used to calling the Americas "America", the US "Estados Unidos" and Americans &q
618.
▲
by
trealira
3y ago
I think they mean that the verb conjugations for the plural third person (ellos/ellas) and the formal plural second person (ustedes) are the same.
619.
▲
by
trealira
3y ago
> However, since it seems that "thee" and "thou" are the informal forms of "you", now I'm really confused why they do this. Unnecessary reverence of the King James Bible translation, probably.
620.
▲
by
trealira
3y ago
It sounds more like he's trying to disprove his current understanding, and he feels confident in his understanding only if he can't disprove it. So, he probably wouldn't fake a trivial misunderstanding like that, but some dee
621.
▲
by
trealira
3y ago
Celeste is pretty fun platformer, though be warned, as you'll die a lot through trial and error. You may dislike it if that's not your thing. It's on sale right now on Steam.
622.
▲
by
trealira
3y ago
Not a parent, but I think this may be still substantial. I was given a tablet when I was around 12 years old, and a mobile phone around 14 or 15 years old. I had no internet restrictions, and no time limits. As a kid, I had used the family
623.
▲
by
trealira
3y ago
Just from hearing this, I was about to say "you could say this about Rust as well, so why hasn't Rust also become more popular for writing malware?" But apparently it has. https://socradar.io/why-ransomware-gr
624.
▲
by
trealira
3y ago
It's both. It's fast enough to provide an alternative to C and C++ purely due to its performance, even ignoring that it's more enjoyable to write Rust than C and C++, and ignoring that Rust code is reliable. That's why D
625.
▲
by
trealira
3y ago
In this case, a type sade programming language would stop you from trying to write to read-only memory at compile time.
626.
▲
by
trealira
3y ago
I think you can do this with proof assistants, and with the SPARK version of Ada. You can also do it with a dependent type system. I haven't used it, but from what I've read, in the ATS programming language, which is dependently t
627.
▲
by
trealira
3y ago
This is mostly an issue with C++ specifically. If you implement the lexer hack[1], C can be parsed using an otherwise context-free grammar. C++ suffers from requiring arbitrary tokens of lookahead before being able to determine whether some
628.
▲
by
trealira
3y ago
What so you mean? You can declare user-defined types in C and C++ without that syntax. In C++: struct MyType { int field; }; MyType m; In C, you would need a typedef to get the same behavior, but the same applies otherwise
629.
▲
by
trealira
3y ago
The modifiers (pointer, "function taking _ returning _", "array N of", etc.) are prefixed, but they could just as well be postfixed. I think people don't do it because it's more similar to English to make the m
630.
▲
by
trealira
3y ago
> I was told, simpler than C, syntax wise and coding a _real life_ rust compiler implementation being _SIGNIFICANTLY EASIER_ than a C compiler. Who told you this? Ignoring Rust, most languages are more complicated to implement than C. On
More ›