Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
irahul
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
391.
▲
by
irahul
14y ago
> python is not interpreted,it is compiled in bytecode just like java. Depending on the implementation, so is Ruby. The canonical MRI 1.9 compiles to bytecode and interprets it. But unlike python, it doesn't write the bytecode to disk.
392.
▲
by
irahul
14y ago
> Except you dont need a JVM to get performances in python. Python's performance is only slightly ahead of Ruby's. Both Python and Ruby are a bad match for CPU intensive tasks(provided we are talking pure python/ruby and not native exte
393.
▲
by
irahul
14y ago
> I don't think pushing tweets to every user is a scalable approach. It would seem more sensible to read rather than push tweets associated with a user. I don't know about Twitter's infrastructure, but storing more than 1 copy of the sa
394.
▲
by
irahul
14y ago
I don't know about the tech scene in Singapore, but I recently visited Singapore and here are some random excerpts about Singapore. 1. As with any other country which isn't your own, familiarize yourself with local law first. Littering is a
395.
▲
by
irahul
14y ago
> does the use of continuations prevent HN from running multiple processes & from being load-balanced? AFAIK HN doesn't use continuations, but closures. Something along the lines of(imitation of arc challenge in flask): https://gis
396.
▲
by
irahul
14y ago
> On the other hand, I have been rock climbing for 7 years and I'm better than ever OT(as far as the OP is concerned) questions from someone who is considering taking up climbing. 1. Isn't what you are doing in the video called boulderi
397.
▲
by
irahul
14y ago
I would have said "imgur is great" except it deletes images. Imgur is simple for the consumer, and you don't pay the bills for bandwidth usage but http://imgur.com/faq#long says if it doesn't get at least 1 view in 6 months, it can delete
398.
▲
by
irahul
14y ago
> Sorry, but it is not a game, it is a convention that afaik holds true for ALL languages that use exceptions. Using exceptions for control flow is widely accepted as a code smell. Unless using exceptions either hinders performance(they
399.
▲
by
irahul
14y ago
> It is perfectly reasonable that a random person isn't married (so throwing an exception is wrong) but at the same time it should be impossible for the caller to ignore. The whole discussion started from the claim that Haskell makes th
400.
▲
by
irahul
14y ago
> whereas in languages with less strict type systems, almost everything is a 'Maybe' I don't know Haskell(I do know F#), so help me with this: How is everything not a Maybe in Haskell? In the languages I know, when you return an object
401.
▲
by
irahul
14y ago
> In Java, the compiler won't tell you that a variable may be null. In Haskell (at least when you compile with -Wall, strange this particular warning isn't the default) you'll get an error if you've failed to handle all the variations o
402.
▲
by
irahul
14y ago
> But (hopefully) not all functions will return null, so you'll probably have at most a single-digit percentage of functions that do. In a real world API, almost everything that returns an object can return null or throw an exception. &
403.
▲
by
irahul
14y ago
> Maybe is a monad, which means Maybe computations can be chained together with `>>=` (or using `do` notation) without checking for `Nothing`. You can easily produce a large composition of potentially-failing computations while
404.
▲
by
irahul
14y ago
> It is worth noting that in Haskell you don't have something like NullPointerException, the type system doesn't allow for that - so while you're point is relevant to Java it doesn't hold here. The closest you can get to something like
405.
▲
by
irahul
14y ago
> every single NoneType error I have gotten using in the python I'm paid to write would go away with a static type system. Not true. Java has NullPointerException, and static typing does nothing to prevent it. Java doesn't have Maybe, o
406.
▲
by
irahul
14y ago
> Disable HTTPS Everywhere. It wasn't that either. It didn't work for me, and for many other people. See the thread for simple `curl http://whatever-joyent` failing.
407.
▲
by
irahul
14y ago
> Here is a company with a history of making tall claims and then doing a 180. How is pointing that out a red herring? >> That isn't particularly relevant to service quality and stability, is it? The claim being made is unlike A
408.
▲
by
irahul
14y ago
> "lifetime" "unlimited" "forever" etc products should always been looked at sceptically for that reason. Anything that is either finite or requires up-keep cannot be offered on these terms, it is just impossible. When a company is offe
409.
▲
by
irahul
14y ago
> Red herring. Here is a company with a history of making tall claims and then doing an 180. How is pointing that out a red herring? > Besides, as far as I understand, Textdrive is in the process of being relaunched, honoring all th
410.
▲
by
irahul
14y ago
Umm The blog post is down. If you can't handle traffic to a blogpost, I don't see how reddit would take your offer about "no downtime" seriously.
411.
▲
by
irahul
14y ago
> A tight summary by someone who understands all this would be appreciated by many readers, not just myself. A tight summary of all of it would be as long as the article. However, the point about semicolons in Rust is: 1. ; is a separat
412.
▲
by
irahul
14y ago
> [(lambda t: t 2)(x) for x in [1,2,3,4]] Why would you have that lambda? [x**2 for x in range(1, 5)]
413.
▲
by
irahul
14y ago
> Learn Lisp. Realize that JavaScript is a lot like Lisp, This would have been true a long time back when Lisp was the language with first class functions, closures etc., but today every other languages have those and JS is a lot clos
414.
▲
by
irahul
14y ago
> The usual suspects are recursive qsort() implementations inside libc on Solaris, HP-UX and AIX. Oh, I am mainly familiar with GNU C library. Wasn't aware others were shipping recursive qsort implementation, especially considering that
415.
▲
by
irahul
14y ago
> But what have they got to do with software development. Zero. Zilch. Nothing. Absolutely sod all. I don't have all of his questions at hand, but from memory: 1. Basic knowledge of statistics and probability is required for machine lea
416.
▲
by
irahul
14y ago
> It is irrelevant because the real world is composed of CRUD apps > but not a real sign of real world programming. http://en.wikipedia.org/wiki/No_true_Scotsman Real world? As opposed to the OP's world which would be called what?
417.
▲
by
irahul
14y ago
> I'd love to know a few of those decisions that you've to take on a day-to-day basis (even once every month) as a software developer, which needs calculus and probability. Machine learning needs an understanding of basic statistics and
418.
▲
by
irahul
14y ago
> Another one of my common things I do at work is replacing quicksort implemented using recursion with an iterative version so that the stack doesn't keep getting blown on large datasets. What language do you use which doesn't already h
419.
▲
by
irahul
14y ago
Most of the questions are pretty trivial and relevant(may be not to you but that doesn't make it irrelevant or a parody). http://news.ycombinator.com/item?id=4635946
420.
▲
by
irahul
14y ago
> But isn't this getting overboard? Naive bayes, with a relevant dataset, does a very fine job of data classification(sentiment analysis, spam detection...). Also, almost everyone who isn't a liberal arts major would have come across Ba
More ›