Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
octo_t
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
301.
▲
by
octo_t
13y ago
There's a lot of extra stuff you get with targeting C: being able to write the run time in C very easily. For example its a lot easier to write your entire OO system in C in a few hundred lines, and keeping that easily debuggable is a
302.
▲
by
octo_t
13y ago
I'll admit that branch misprediction will also screw you over, large event loops are sometimes large enough to escape the instruction cache (especially with function inlining)
303.
▲
by
octo_t
13y ago
And some of your code is in the instruction cache and some isn't - meaning a sudden context[1] switch has to read a lot of code from memory which is slow(ish) [1] - not a thread switch (although that would be as costly), but an if-stat
304.
▲
by
octo_t
13y ago
Why do we want to make things easier for compiler writers? Make things easier for developers and once its solved in the backend (by one team) its done.
305.
▲
by
octo_t
13y ago
Almost like there could be some kind of "List" monad >_> (Or syntactic sugar for map/foreach)
306.
▲
Interface Segregation Principle in Ruby
(marioaquino.blogspot.co.uk)
2 points
by
octo_t
13y ago
|
0 comments
307.
▲
by
octo_t
13y ago
"Normally this wouldn't be the kind of story we run, but given the misconception that Carter's comments were made within a game and that League of Legends had anything to do with this, we felt compelled to dispel the inaccura
308.
▲
by
octo_t
13y ago
Have you looked at GPUVerify[1] from Imperial College to verify the correctness of code produced? [1] - http://multicore.doc.ic.ac.uk/tools/GPUVerify/
309.
▲
by
octo_t
13y ago
OpenCL is used to JIT OpenGL calls based on the hardware. Its magic.
310.
▲
by
octo_t
13y ago
>> embedding C-as-a-string in more C Um. OpenCL/Cuda look absolutely nothing like that.
311.
▲
by
octo_t
13y ago
Technically the quicksort at the end of the tutorial isn't idiomatic quicksort, the memory complexity is wrong.
312.
▲
by
octo_t
13y ago
And this why -Wpadded is always a useful clang/gcc flag to enable when doing optimisations
313.
▲
by
octo_t
13y ago
Comments starting with // are not valid C89.
314.
▲
by
octo_t
13y ago
Speaking as a formerly closeted person, this is an exact thing I did in school because I didn't want my parents to find out, since they are deeply Christian.
315.
▲
by
octo_t
13y ago
I don't find this very great to be honest. Consider the case of a confused kid looking things up in school or something similar, someone spots the rainbow walking behind him, since its very different from the normal Google and gets out
316.
▲
by
octo_t
13y ago
If this was 2007 or so, maybe.
317.
▲
by
octo_t
13y ago
Venezuela is one of the most democratic countries in the world? All of their last elections have been externally ratified as being fair: http://www.cartercenter.org/news/pr/hugo-chavez-030513.html http:/
318.
▲
by
octo_t
13y ago
A useful term when understanding tail recursion is "trampoline"[1], even though most compilers don't use this, it is a very useful way of visualising tail recursive calls. [1] - https://en.wikipedia.org/wiki&#
319.
▲
by
octo_t
13y ago
Surely this could have been a criticism of C? Won't we lose the benefits of an assembly language that is human edited and readable?
320.
▲
by
octo_t
13y ago
Start out by working what you need to have communicated between 1 player and the server. Then think what you need to communicate between two different players in the game.
321.
▲
by
octo_t
13y ago
When I'm done with my current project, my plan is to make the heap 64-bit on 64-bit machines (which was currently an issue last I checked).
322.
▲
by
octo_t
13y ago
Rolling Stone has always been a political magazine. Often with a certain je-ne-sais-quois (see Hunter S Thompson), but political never the less. In the 90s they shifted to a more media-based based magazine, compared to previously and they h
323.
▲
by
octo_t
13y ago
Simon Ochsenreither has been investing a fair amount of resources into Avian[1], an alternative JVM with support for tailcalls and various other useful toys. I think this is possibly where languages like Scala may lead, potentially forking
324.
▲
by
octo_t
13y ago
I absolutely agree (although for smaller projects I enjoy Haskell more). Tony Morris (the person who started the conversation) is a pretty devoted Scala-er. But it is definitely recognised by Scala experts (especially people who are arms de
325.
▲
by
octo_t
13y ago
I think its recognised, even by people like Odersky, that the language has been significantly compromised by the decision to run on the JVM. It is an incredibly well-designed language, but lots of that effort has gone into covering up some
326.
▲
by
octo_t
13y ago
For me to upload 3TB on my shoddy connection would take about 290 days or so. If I ever needed to put that much data in the cloud, you can bet I'd use something like this.
327.
▲
by
octo_t
13y ago
Both ! and ? have their history in Erlang, it was a conscious design decision to use those sigils. I've not looked at typed channels at all, but yeah, thats annoying. Scalaz and Shapeless are designed to do crazy type level stuff, taki
328.
▲
by
octo_t
13y ago
What "useless sigils and buzzwords" does Scala have?
329.
▲
by
octo_t
13y ago
I'm a fan of scala-lang/scala-internals both of which are very interesting.
330.
▲
Scala Pickling - Fast, Customizable, Boilerplate-Free Serialization for Scala
(speakerdeck.com)
3 points
by
octo_t
13y ago
|
0 comments
More ›