Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
matthavener
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
matthavener
14y ago
I didn't quite "get" the point of the pointer/copy option on interfaces, but this makes it crystal clear. This works around such a common problem in writing C++ templates (which is really the only equivalent polymorphism if you want to disp
32.
▲
by
matthavener
14y ago
;; especially since read-string will be fixed in clojure 1.5 so that ;; binding *read-eval* to false around it will make it safe, as far as In clojure 1.5 with read-eval bound to false, the reader is still unsafe for malicious i
33.
▲
by
matthavener
14y ago
They don't really have a choice, do they? If you want to add features you can either: 1) make a new reserve word, possibly breaking existing code 2) reuse a reserve word in a new context.
34.
▲
by
matthavener
14y ago
In C++, you can do this by passing the array by reference: void foo(int (&foo)[10]) {} However, that is not "minimum of 10" but "exactly 10". You can also get the size at compile time: template <size_t N> void foo
35.
▲
by
matthavener
14y ago
I'm using nextdoor in my neighborhood and its great. Non-technical folks are signed up and chatting with each other, sharing tips on local businesses and neighborhood crime.
36.
▲
by
matthavener
14y ago
'codeq' is also the name of the static analysis tool released late last year https://github.com/Datomic/codeq
37.
▲
by
matthavener
14y ago
Really great C code. However, "timeInMilliseconds" should really use clock_gettime(CLOCK_MONOTIC, ..) instead of gettim eofday(..). A sudden change in time due to NTP, administrator, timezone, etc, could have the loop in "dictRehashMillisec
38.
▲
by
matthavener
14y ago
Totally agree and I was really surprised by this. One line patches can turn into 30 lines just to reformat the surrounding code.
39.
▲
by
matthavener
14y ago
Is it even possible to busy wait in Erlang?
40.
▲
by
matthavener
14y ago
Very true, especially when you considering how many namespaces C has. In C++, its even harder.
41.
▲
by
matthavener
14y ago
You still need to install the JVM. Python/perl/ruby require installers because you need some platform-specific stuff for each. Running everything inside the JVM means you only need to ship what any arbitrary JVM library requires. In this ca
42.
▲
by
matthavener
14y ago
What's the difference between a server side class and a schema? And isn't the necessity of creating a class just a complexity required by some statically typed OO languages. Some data defined by a schema is still just data -- it can be used
43.
▲
by
matthavener
14y ago
Doesn't the slice length help the server avoid buffering? You can send a incomplete amount of data out as soon as you've computed it.
44.
▲
by
matthavener
14y ago
And wages increasing in China
45.
▲
by
matthavener
14y ago
Apple uses C++, even on mobile. The iBooks acknowledgements lists Boost and Google Protobufs.
46.
▲
by
matthavener
14y ago
On linux echo 20 > /proc/sys/net/ipv4/tcp_fin_timeout
47.
▲
by
matthavener
14y ago
Me too. QMake can generate from visual studio, I think it also integrates with XCode.
48.
▲
by
matthavener
14y ago
I'd be interested to see which subset of C++ each company picked. Google's coding guidelines are always cited, but I can't find many others. MySQL's seem lacking in details. C++ is such a broad spectrum, I bet some of these companies only u
49.
▲
by
matthavener
14y ago
VMWare has something called "Transparent Page Sharing", which allows VMs to share read only pages. So, it might actually be feasible to start up 50 VMs if they were all running the same software and only had a small amount of private state.
50.
▲
by
matthavener
14y ago
You could take advantage of the replication for some kind of highly reliable monitoring device: take different samples with each raspberry pi, the data is duplicated on N devices, and then you can come back later to collect not worrying abo
51.
▲
by
matthavener
14y ago
Do they really think they can test for subversive code? Just look at the origin of "trojan". Its designed to look harmless from the outside but contains something deadly on the inside.
52.
▲
by
matthavener
14y ago
You might be interested in Datomic. "Datomic embeds Datalog, a subset of Prolog, to move queries into the application." ( http://www.infoq.com/news/2012/03/clojure-west )
53.
▲
by
matthavener
14y ago
The biggest difference to Erlang is VxWork's inability to isolate task faults or runaway high priority process. (Tasks are analogous to Processes in Erlang). VxWorks 6.0 supports isolation to some degree, but it was released in '04, after t
54.
▲
by
matthavener
14y ago
I think two reasons: 1) VxWorks directly supports message passing ( http://www.vxdev.com/docs/vx55man/vxworks/ref/msgQLib.html ). 2) They seem to prefer simple, obvious, "less magic" interfaces. STM is nice for its "magic", but message crea
55.
▲
by
matthavener
14y ago
I could be wrong, but as of iOS5, NSURLConnection does disk caching by default, and therefore so does AFNetworking. Source: http://petersteinberger.com/blog/2012/nsurlcache-uses-a-disk...
56.
▲
by
matthavener
14y ago
You can always match the speed of java in critical areas by disabling number boxing, adding type hints, and using the mutable versions of data structures. This is what prismatic did for their ML computation code: http://www.infoq.com/prese
57.
▲
by
matthavener
14y ago
If this was true, wouldn't we see more links between cities on the NE coast and in the gulf of mexico? I was always under the impression we ran fiber along railroad routes.
58.
▲
by
matthavener
14y ago
Yep. Skunk works describes how they pumped it around the cockpit to help cool the aviation electronics and pilot. Just to add to the scariness of flying at mach 3+, you're also surrounded by jet fuel.
59.
▲
by
matthavener
14y ago
Luckily for Gmail, its virtually impossible to call anyone at Google. Maybe all the talk of "Gmail's lack of support" is actually a security feature :)
60.
▲
by
matthavener
14y ago
Agreed, I think the real lesson is: reading is 10x cheaper than branching, so if you can do something with 10 non-branching ops it'll be just as fast as a single branch.
More ›