Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
quacker
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
241.
▲
by
quacker
12y ago
Female hurricanes being 'quite a bit deadlier' than male hurricanes may well be surprising but it has equal probability with the event that male hurricanes are 'quite a bit deadlier' than female hurricanes. I definitel
242.
▲
by
quacker
12y ago
Surprisingly, if you assume a uniform distribution of deadliness independent of the names, you actually find that it's more likely that either 1 or 2 is true than that 3 is true Right, but if you are a statistician what you should ca
243.
▲
by
quacker
12y ago
I was just saying M+N ≠ M×N, and that solutions that forces M×N are bogus. Agreed. I was clarifying that converting your code to use visitors does not force an order of magnitude increase in the amount of code. If you start out with O(M
244.
▲
by
quacker
12y ago
With M objects and N behaviours, it's okay to write M plus N pieces of code. With the Visitor pattern as I saw described, I have to write M times N pieces of code. It's actually the same amount of code in either case. With N dif
245.
▲
by
quacker
12y ago
for every single subtype you add, you still need to add a case to each of your visitors. Why is this a problem? If you have N visitors, that's N different behaviors for every type, and you'll have to define those N behaviors for
246.
▲
by
quacker
13y ago
Are you trolling here, or are you really implying that the JVM is bad? Could you elaborate? I consider the JVM to be the best part of programming in Java. The JVM is fast, lets you write very portable code, and it gives you a great debuggin
247.
▲
by
quacker
13y ago
Something doesn't make sense here... I gathered from other threads that Google's ads are preferred over facebook's. So either Google doesn't do "contextual/interest based" ads, or contextual/interest
248.
▲
by
quacker
13y ago
I personally would like to see a rule where each car gets X amount of fuel (adjusted in BTUs) per race. I think the article mentioned exactly that: To enforce this focus, the 2014 regulations limit the total fuel consumption for an entir
249.
▲
by
quacker
13y ago
singleton java.util.ArrayList So...don't use data structures that are not thread-safe in threaded environments? Wrap it with Collections.synchronizedCollection. Or make copies, if you prefer. For the very small price of a little bit
250.
▲
by
quacker
13y ago
Forgive my imprecision. > You don't need to know Java to write Scala Is this actually true in practice? Are there tutorials or books that don't assume knowledge of Java? In any case, if you want to use anything in the Java sta
251.
▲
by
quacker
13y ago
> Early adopters are disenchanted with Scala. Since everyone else seems to disagree, I'll explain why I agree: -- Scala advocates a completely different style of programming. You have to rethink how you code to match Scala's f
252.
▲
by
quacker
13y ago
> It's driven by the fact that the author has some theories about UI design, and wants to share them with us. This was exactly my reaction. The author points out things which are "confusing" within the context of some log
253.
▲
by
quacker
13y ago
I mentioned the Ubuntu phone to some non-programmer friends recently when they were talking about the new iPhone. They had never of Ubuntu.
254.
▲
by
quacker
13y ago
Emulating a processor of another architecture will not be as quick as having the hardware, will it?
255.
▲
by
quacker
13y ago
Are there actually any schools that don't use Microsoft products? Nearly all the machines at my university are Windows machines. The CS department has Linux machines in the labs (alongside Windows machines). There are a few Macs arou
256.
▲
by
quacker
13y ago
I agree. This is going to affect Rust's adoption if they aren't careful. People are hesitant to write tutorials, documentation, or code that may need to be rewritten later. But I still give Rust a pass on this for the time being.
257.
▲
by
quacker
13y ago
Huh. I didn't realize PyPy was so much larger than CPython. I was aware of the ridiculous size of emscripten's output. When I experimented with emscripten a couple months ago, "Hello World" in C produced about 2000 lines
258.
▲
by
quacker
13y ago
Go sure is easy to get started with, but it would have to be 20 times better than it is to make me give up the JVM. I like Rust because it gives you control (like C++) but does so carefully (unlike C++). In ten years, Go should be a great
259.
▲
by
quacker
13y ago
The ability to work well with others is a skill that benefits any workplace. An obvious way to gauge this is to contact the candidate’s references. But, why not take it a step further and dig into a candidate’s social media profiles? Ehh.
260.
▲
by
quacker
13y ago
The PyPy project did not reimplement the entire Python standard library. The goal of PyPy is to provide a drop-in replacement for the canonical CPython interpreter . Right now, PyPy is (very) compatible with existing Python 2.7.3 code.[1]
261.
▲
by
quacker
13y ago
The quoted 139 MB includes the full Python standard library, which certainly accounts for a majority of that size. repl.it also compiles the entire Python standard library, so why should the two be significantly different in size?
262.
▲
by
quacker
13y ago
repl.it uses a version of CPython compiled with emscripten[1], so the version in the article should be similar in size. 1: https://github.com/replit/empythoned
263.
▲
by
quacker
13y ago
I'm not sure how you define hacking. Web-scraping is not gaining unauthorized access to an otherwise inaccessible system. Anything you can see with your eyes in a browser is out in the open. And you can adjust a scraper's schedule
264.
▲
by
quacker
13y ago
Slightly off topic, but something I've been curious about. Go decided on garbage collection to manage memory. Why do so few languages offer something like C++'s RAII?[1] In C++, when you define a class, you define the constructor(
265.
▲
by
quacker
13y ago
I meant, you have a number of regular expressions, and each gets compiled (e.g. by calling re.compile in Python), so you have one DFA per regex. At least in Python, there are also transient objects created whenever you match something with
266.
▲
by
quacker
13y ago
I'm not surprised the hand-written version is faster. You need to store an object for each regex. If these objects are DFAs, for example, then there is a considerable amount of overhead storing the graph to represent the DFA. The hand-
267.
▲
by
quacker
13y ago
I've often thought touchscreen devices would be complemented well by a set of arrow keys. (On a desktop, you can flip through the slides with the left and right arrow keys.)
268.
▲
by
quacker
13y ago
I'm curious how well these tools work. Having a single unified code base and supporting all (desired) platforms is every developer's dream. I'm skeptical because supporting multiple operating systems can be a headache even fo
269.
▲
by
quacker
13y ago
Right, and comments and documentation serve different purposes. But appropriate docstrings will greatly reduce the need for comments.
270.
▲
by
quacker
13y ago
Yeah. This is my biggest gripe working with dynamically-typed languages, especially if the project is at all large. If I have SublimeText or Vim, I'll be equally productive in Python as I'd be in Java. But give me Eclipse/Int
More ›