Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
PeCaN
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
102 ms
·
901.
▲
by
PeCaN
11y ago
Well then we can just add "if you have to abbreviate your function name and arguments for the common form to fit in a tweet, you're probably doing it wrong".
902.
▲
Taylor: Swift on bare metal
(github.com)
2 points
by
PeCaN
11y ago
|
0 comments
903.
▲
by
PeCaN
11y ago
The other benefit is a lot of math intuitively makes sense in the context of using it for games. I started learning linear algebra when I was ~14 or so because I was trying to make a 3D game and had a specific idea of how the camera shoul
904.
▲
by
PeCaN
11y ago
All its variables are dynamically scoped, the syntax is the worst of SmallTalk and Prolog, and you're worried about nil?!
905.
▲
by
PeCaN
11y ago
I get the opposite feeling from Scala, more that it was "let's make a cool language with a bunch of interesting features" instead of "we've got a problem to solve". Don't forget Scala started out as a rese
906.
▲
by
PeCaN
11y ago
For the record, I've never really had a problem with GHC having long compilation times. If anything it's remarkably fast for what it does (IMO, it's the closest thing to a "sufficiently smart compiler" currently ava
907.
▲
by
PeCaN
11y ago
Spoiler: yes. I wonder if there's anything in the rules to deal with the fact that a game might never complete.
908.
▲
by
PeCaN
11y ago
Probably just has a conservative Boehm-ish GC. Their website is a bit sparse on the GC details from what I can tell, but anything else would be rather surprising.
909.
▲
by
PeCaN
11y ago
I like PyQt except that it's a pain to deploy anything written in it on Windows—though to be fair, I haven't tried for a couple years! I wonder if PyQt works with Cython. That could be interesting.
910.
▲
by
PeCaN
11y ago
I really want to like Qt5, but it's just so... big, and using it from C++ is so cumbersome. I don't suppose you're familiar with any quality Rust or Nim or D or some other compiled-language-that-sucks-less bindings? There
911.
▲
by
PeCaN
11y ago
To be fair we don't know that they won't port the JIT over eventually. I can't imagine it's a high priority.
912.
▲
by
PeCaN
11y ago
Heck, Idris can in some cases write code for you based on solving the types you provided. Powerfully-typed languages also work much better for structured editing. http://docs.idris-lang.org/en/latest/tutorial/
913.
▲
by
PeCaN
11y ago
Perhaps most notably, Haskell has the same behavior as LiveScript. EDIT: Derp, that's not true. (- 2) == (-2)
914.
▲
by
PeCaN
11y ago
Turns out run-length encoding it is more or less what you get if you store it as 2^74,207,281 - 1. I imagine this probably is how they store it actually; note that 2^n == 1<<n so you can just store the exponent and complement (74 207
915.
▲
by
PeCaN
11y ago
I'm building a language for learning to program on smartphones. It's a stack-based language designed for interactive editing (since typing code on a smartphone is no fun). It's in the very early stages at the moment. https:&
916.
▲
by
PeCaN
11y ago
0-length arrays are a GNU C extension[1]. In ISO C99, they're only permitted as the last member of a struct with another member, and are written with an empty pair of brackets[] and no 0. 1. https://gcc.gnu.org/onlinedo
917.
▲
by
PeCaN
11y ago
I have no idea what MS pulled to make Electron fast, because all other Electron-based apps that I've used have been absurdly slow. VS Code isn't the fastest thing ever and uses more RAM than I'd like, but it definitely hits t
918.
▲
by
PeCaN
11y ago
Building programming languages just for the heck of it is highly underrated, I think every programmer should at least try implementing a few languages of different paradigms. Implementing a stack-based language made me write more readable p
919.
▲
by
PeCaN
11y ago
The problems seem really interesting. I'd work for them in a heartbeat. Some people just don't care about what the ends are used for. But more importantly, just because some of their stuff may be used for Big Evil™, most of it may
920.
▲
by
PeCaN
11y ago
Using C++ libraries from other languages comes to mind.
921.
▲
by
PeCaN
11y ago
Well, Chakra is a bit ahead of V8 in ES6 implementation right now. https://kangax.github.io/compat-table/es6/
922.
▲
by
PeCaN
11y ago
It is in the formal sense, and in a practical sense too (if you have an impractical amount of rules, anyway ;). Strict rules doesn't necessarily mean the rules (productions) are context-free.
923.
▲
by
PeCaN
11y ago
AMD's CPUs do many fewer instructions per cycle as Haswell (in some cases half as many), not to mention Skylake. You can't really compare GHz between them. And releasing a new architecture is not exactly feasible if they want to s
924.
▲
by
PeCaN
11y ago
In Haskell or Scala you could quite easily structure the code such that concatenating strings from different sources like that would be a compile error.
925.
▲
by
PeCaN
11y ago
The built-in WebAssembly GC could just be the native JS GC, which is very, very good for most dynamic languages. There's really not that much difference between GCing JS, Lua, Python, and MyDynamicLanguageWithRubySyntaxAndLuaSemanticsA
926.
▲
by
PeCaN
11y ago
Lenses aren't really designed for providing OOP, they just happen to be able to do that too. Have you ever wanted to return a copy of an array with an element changed? Like (JS) var new_a = a.concat(b) gives you a new array, don't
927.
▲
by
PeCaN
11y ago
Why would that be a warning? It's quite clear what that code is doing and is a reasonably common C idiom.
928.
▲
by
PeCaN
11y ago
Specifically, it doesn't warn you if the assignment statement is in parenthesis, so while ((xs = xs->tail)) doesn't warn. I really like how GCC handles that.
929.
▲
by
PeCaN
11y ago
And on top of that, it only has some weird sort of pseudo-ASLR.
930.
▲
by
PeCaN
11y ago
19, it's like 30/70 SMS/Facebook in my experience. (Then there's Snapchat, but that is more of an overlap than a replacement.) I think part of it is that Messenger handles groups well and everyone is on it without needin
More ›