Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smanek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
smanek
15y ago
That's fair - the largest code bases I've ever worked on are all less than ~200K LOC. They've enforced style by mandating committers hook a linter into a git pre-commit hook, and compilation time hasn't been a huge problem since the languag
32.
▲
by
smanek
15y ago
Do you seriously doubt that the Go GC is significantly worse than the Oracle JVM GC (by the metrics of pause times and throughput)? I don't think I've ever heard anyone suggest that it isn't. My point with this article is simply that, even
33.
▲
by
smanek
15y ago
Incidentally, I've seen unsynchronized access to a Java HashMap cause an infinite loop on .get()s which is (allowably) undefined behavior, and pretty unexpected (see: http://mailinator.blogspot.com/2009/06/beautiful-race-condit... )
34.
▲
by
smanek
15y ago
What else do you think macros provide? As a former professional Common Lisp dev, those two features strike me as the real difference between a macro and function call.
35.
▲
by
smanek
15y ago
For the lazy, here is the petition: http://wh.gov/04u Yes, we all know that online Whitehouse petitions won't have as much effect as calling/writing your congressional representatives. But this is such a 'niche' issue that I could imagine
36.
▲
Tell President Obama to support the Federal Research Public Access Act
(scottaaronson.com)
105 points
by
smanek
15y ago
|
5 comments
37.
▲
by
smanek
15y ago
The SEC requires private companies that have more than 500 shareholders to file basically the same paperwork/disclosures that a public company has to. FB is probably nearing (or over) the 500 shareholder limit. Since they are going to go th
38.
▲
by
smanek
15y ago
FWIW, Greplin's cofounder (Robby Walker) went straight from Google to Greplin. Although, to be fair, his last startup was acqui-hired by Google too.
39.
▲
by
smanek
15y ago
Ah, I see what you mean - thanks! The full (buildable) source code - including the CsvParam and DateParam classes - are here: https://github.com/smanek/students
40.
▲
by
smanek
15y ago
Take a look at Jetty ( http://www.eclipse.org/jetty/ ) for the second option. I tend to use 'mvn tomcat:run' to run my dev server, which I find even easier, fwiw.
41.
▲
by
smanek
15y ago
Thanks for the clarification and expansion! I was worried about dumping too many details on people while trying to convince them that Java can be easy too ;-) But you're absolutely right on most of these points. All the formatting tricks ar
42.
▲
by
smanek
15y ago
I love it! And that is the reason I still write in Python or Lisp when I don't need something (Hadoop, Lucene, etc) from the JVM ;-)
43.
▲
by
smanek
15y ago
In that example I only throw an exception when you try to delete a student who doesn't exist. The reason I do so is that it contains semantic information which is useful for the client. If I returned a fake value - the client would get a 20
44.
▲
by
smanek
15y ago
How would these be any shorter in Python or Ruby? @GET public Collection<Integer> listStudentIds() { return STUDENTS.keySet(); } or @DELETE @Path("{uid: [0-9]+}") public boolean deleteStudent(@PathParam("uid")
45.
▲
The Modern Java Ecosystem (for the Sinatra or web.py lover)
(arantaday.com)
127 points
by
smanek
15y ago
|
68 comments
46.
▲
Greplin (YC W10) Opensources Zookeeper Utilities
(tech.blog.greplin.com)
4 points
by
smanek
15y ago
|
0 comments
47.
▲
The Evolution of John McCarthy (Evolutionary Algo with Lisp Code)
(youtube.com)
8 points
by
smanek
15y ago
|
0 comments
48.
▲
by
smanek
15y ago
I'll pay due respect to China's opinion on the matter when evidence is produced that he is directly responsible for one death. In the meantime, the fact that he is considered a terrorist by the Chinese Govt makes them look like idiots - rat
49.
▲
by
smanek
15y ago
I wonder if there was any relation to this story: http://www.techdirt.com/articles/20111005/11133116225/judge-... I could see him wanting to step down before any sort of formal investigation could occur ...
50.
▲
by
smanek
15y ago
Generally, the management fee is 2%, and you get 20% of all profit (known as 'two and twenty').
51.
▲
by
smanek
15y ago
I found it more useful to control my Twillio interaction via a Finite State Transducer (FST - http://en.wikipedia.org/wiki/Finite_state_transducer ) instead of a FSM. An FST allows you to accurately model 'outputs' on state transitions (wh
52.
▲
by
smanek
15y ago
I don't think cutting mail service to 2 days a week would disconnect 'country folks.' Anything time sensitive could use email, fax, or (more expensive) private delivery services. Plus, it's managed horrifically. What sort of real company wo
53.
▲
by
smanek
15y ago
Creating tech jobs will drive tech salaries up. That will attract new workers to tech (make it worth the investment to retrain, etc), and 'trickle down' money to manufacturing and other industries. Making the pie bigger is good. Of course $
54.
▲
by
smanek
15y ago
It costs engineering time to do so. Time that could otherwise be used to build features, better protect against more common failures, attract users, etc. Amazon probably has ~5hrs/year of complete failure of a region. Figure, conservatively
55.
▲
by
smanek
15y ago
A lambda is an anonymous function (i.e., a function without a name). It may or may-not be a closure, depending on if it has access to surrounding lexically scoped variables. A closure is a function, combined with the set of variables declar
56.
▲
by
smanek
15y ago
""" Airbnb, while pointing out that the incident was the first of its kind out of some 2 million stays booked since the company's founding in 2008 ... """ source: http://travel.usatoday.com/destinations/dispatches/post/2011... Either USAT
57.
▲
by
smanek
15y ago
Some (most?) of that 2.75% is going to other people. I know nothing about Square's internal infrastructure - but they are either paying ~3% to some other payment processor, or have become their own processor and are paying ~2% in interchang
58.
▲
by
smanek
15y ago
Assuming copyright/trademark in place on the image, probably not (although, IANAL - so take the following with an appropriate dose of salt). The short reason why is that bits have color ( http://ansuz.sooke.bc.ca/entry/23 ). See http://en
59.
▲
by
smanek
15y ago
That provides the same functionality of just using vector clocks, at ludicrously higher cost and complexity (and only addresses half the problem that Alex is discussing). A big problem is that arbitrary DB writes after split brain (aka netw
60.
▲
by
smanek
15y ago
and that isn't thread safe lazy initialization either ;-) it's surprisingly tricky to get lazy init right.
More ›