Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zohebv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
zohebv
15y ago
> In what world is initiating a productive discussion about an important issue A toy example is not an important issue. As for initiating productive discussions, I will let your comments speak for themselves 1. This is cargo cult progra
32.
▲
by
zohebv
15y ago
So, his example monad is bad. Indulging in hyperbole and invoking Moggi can at best be seen as attention-seeking behavior and at worst as an underhanded FUD tactic to turn people off the project. Peaker has pointed out the problem with the
33.
▲
by
zohebv
15y ago
Monads are not simply a tool for managing side-effects. Why would you consider parser combinator/List Monads useless in a language with unrestricted side effects? Writing monads without sugar becomes clumsy very quickly and monads have been
34.
▲
by
zohebv
15y ago
These operators such as ++ (concatenation) etc are uniformly available in all collections. It has inherited these operators from base sequence classes/traits specifically TraversableLike. http://www.scala-lang.org/api/rc/scala/collection/T
35.
▲
by
zohebv
15y ago
In scala the use of : changes the associativity of the operator, so a ++ b ++ c is equivalent to (a.++ b).++ c while a ++: b ++: c is equivalent to (c.++: b).++: a However fear not :-) the arguments are always evaluated left to right i.e. a
36.
▲
by
zohebv
15y ago
I think, this is in part a consequence of the deification of Steve Jobs, who might have adopted a similar stance towards his partners/employees. Such behavior is now automatically assumed to be acceptable by some subset of people. The No As
37.
▲
by
zohebv
15y ago
> 1. How do we make a software distribution system that simultaneously keeps malware off but allows developers and users liberty without a third party policing the content? Android lets you install alternative marketplaces. In effect, t
38.
▲
by
zohebv
15y ago
So it does use a power source. The title should read - "Robot walks downhill without additional power source".
39.
▲
by
zohebv
15y ago
Not everyone becomes a successful startup founder. Most people work as employees and not graduating will put a sever dent on their career prospects.
40.
▲
by
zohebv
15y ago
This is my personal style. I don't really use the OOP much. I get as much work done as possible via STL. Use RAII for resource cleanup. Completely avoid new/malloc/throw etc. If forced to use pointers use smart_ptr (possible use case - poly
41.
▲
by
zohebv
15y ago
> Electronic Communications Privacy Act Orwellian naming conventions are all the rage these days :-) Jerry Yang faced a lot of heat for doing pretty much the same thing in China. Google seems to reluctant to criticize the US government
42.
▲
by
zohebv
15y ago
This http://www.dartlang.org/docs/technical-overview/index.html A delightfully blank page :-) Yes it mentions classes, interfaces, optional types, libraries, tools, structured yet flexible language. But all of these are a given. Is there
43.
▲
by
zohebv
15y ago
From whatever little I see, I am already hating it :-) This looks like Java for Javascript, if that makes any kind of sense. We are in the year 2011, PL design has progressed so much since 1990 that such an anachronism is unpardonable. I si
44.
▲
by
zohebv
15y ago
As it so happens, I am now implementing a load balancing solution on the JVM using the hybrid technique you recommend, lots of threads and some asio coming soon. However asio support on the JVM is poor. You are correct, in that using asio d
45.
▲
by
zohebv
15y ago
Interesting, this reads like an anecdotal description of the New Trade Theory. http://en.wikipedia.org/wiki/Paul_Krugman#New_trade_theory http://en.wikipedia.org/wiki/New_Trade_Theory
46.
▲
by
zohebv
15y ago
> @zohebv there are several errors in deduction here: @ajd I would disagree with this statement very easily and very confidently. > really yes > multi-threading and non blocking io are two separate tools asio is a way of minimiz
47.
▲
by
zohebv
15y ago
> How is running 40 instances of node processes different from running 40 instances of a single threaded web server? 40 Instances of a single threaded webserver can block for I/O. If your webserver is 50% CPU bound this means that your
48.
▲
by
zohebv
15y ago
Node is an asynchronous programming framework bundled with a largely async library. If you have 40 cores on your system, you would presumably run 40 instances of node for a CPU intensive webserver(using multinode etc). So the event handler
49.
▲
by
zohebv
15y ago
Most often they don't have any code. Most of the action takes place inside the head and not inside the computer. What they have are proofs of correctness, invariant enforcement, complexity bounds etc. I doubt that reading the code will impr
50.
▲
by
zohebv
15y ago
> Actually, Bill Gates has simply built gates and extracted a toll for using them. His products were rarely acceptable alternatives if evaluated on their own merits and sold largely because of strong-arm deals with the OEMs. While I hav
51.
▲
by
zohebv
15y ago
> This is an urban legend This is true, I stand corrected. However outside of Hilbert and Einstein no one was looking at Reimannian Geometry for answers. > The physics community was already converging on the special theory of relati
52.
▲
by
zohebv
15y ago
I do know about Hilbert, however Einstein and Hilbert were in heavy correspondence in the preceding few months and Hilbert never claimed primacy over Einstein. My conclusion, after seeing many accounts appears to be that Einstein would have
53.
▲
by
zohebv
15y ago
I should have said most people, rather than noone. Bill Gates helped make the PC cheap by building a hardware independent OS that commoditized hardware. Edison has a fairly colorful commercial history. But the PC/electricity revolution woul
54.
▲
by
zohebv
15y ago
> I mean this inclination doesn't imply anything about what economic policy should be Isn't it disingenuous to infer that this inclination should not imply anything about economic policy? I would arrive at the opposite conclusion. Econo
55.
▲
by
zohebv
15y ago
Thank you for the paper reference. It looks like O(1) detection is possible but is possibly expensive. With a periodic deadlock check you end up having to tune the periodicity and be able to write a very robust deadlock handler. For ex: wha
56.
▲
by
zohebv
15y ago
Weird presentation. He has a disclaimer upfront that he doesn't really know much about the JVM. He wants a Decimal class? Fine go ahead and write one. You can easily emulate it using an int with a globally accepted denominator value, but wh
57.
▲
by
zohebv
15y ago
Well, all these tuples can be represented as a List[Any] object in Scala with no problems and it would be just like any other dynamically typed language. However, if you want static type checking of your code, then yes - it is useful to tel
58.
▲
by
zohebv
15y ago
Many years ago, a couple of my friends got together and planned a vacation. One of our friends who didn't want to come along jumped in and said - "Hey why don't you take the money pooled in and donate it to earthquake victims instead of tak
59.
▲
by
zohebv
15y ago
How about this, this will compute more than pairs <pre><code> let dict = Data.Set.fromList["apple", "pie", "bread", "applepie", "piebread"] let fn q = concat.Data.List.map (\(x,y) -> if (member x dict) then if y == "" th
60.
▲
by
zohebv
15y ago
This looks like a variation of the stable marriage problem. http://en.wikipedia.org/wiki/Stable_marriage_problem
More ›