Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Peaker
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
94 ms
·
901.
▲
by
Peaker
14y ago
Which languages have you studied? What makes you say that?
902.
▲
by
Peaker
14y ago
All of these languages are mostly imperative. The author recommended, and I concur, getting some hands-on with other paradigms (Functional, Logic, etc).
903.
▲
by
Peaker
14y ago
This guy must really love his null pointer exceptions.
904.
▲
by
Peaker
14y ago
This is one of the files in a project I've worked on last week. https://github.com/Peaker/bottle/blob/master/codeedit/Editor... I removed all the top-level type declarations, and only one definition broke, because of the MR. showP ::
905.
▲
by
Peaker
14y ago
I don't know Scala, but the Erights language does something like (pseudo-syntax): def Circle(center, radius): circumference = 2 * pi * radius return object: to getCircumference(): return circumference to ...
906.
▲
by
Peaker
14y ago
> They're not worth discussing because they're a counterintuitive mess Do you really believe Num overloading is a counterintuitive mess? I disagree completely. > OCaml discarded it and forces you to use different operators for real
907.
▲
by
Peaker
14y ago
CPython is written in C, not C++. Two very different languages.
908.
▲
by
Peaker
14y ago
Manually capturing free variables via: def __init__(self, x, y, ..): self.x = x self.y = y Is so tedious and DRY-violating.
909.
▲
by
Peaker
14y ago
Integers and Strings aren't edge cases. Their literals are polymorphic and typed. C++ could also type its list initializers with some polymorphic type (similar to Haskell's Num) but didn't do so. This is not inherent.
910.
▲
by
Peaker
14y ago
"in this way, the performance penalty of garbage collection is amortized, and so a long-running application will not mysteriously stop responding from time to time while the garbage collector runs." I think he meant to say un-amortized? Usu
911.
▲
by
Peaker
14y ago
Reducing fat means it takes more of it to get the feeling of being full. The milk is also full of growth hormones and carbohydrates which we get too much of, so drinking more of it is potentially worse than a bit more fat.
912.
▲
by
Peaker
14y ago
Viper?
913.
▲
by
Peaker
14y ago
In my experience, very quick and dirty code becomes correct faster with a rewrite than with incremental fixes.
914.
▲
by
Peaker
14y ago
Bluespec is trying to do something similar to this, but they focus on synthesizing hardware, software is a secondary thing. However, it's designed to run well in software too. Originally implemented by one of the major Haskell gurus, August
915.
▲
by
Peaker
14y ago
I can't really deal with a taskbar or alttab list having dozens of items in it. It's unmanageable. I use desktops to partition stuff so there are manageable amounts of Windows at a time.
916.
▲
by
Peaker
14y ago
The notion that all private communication between peers is monitored for copyright infringement means that we've reached the police state stage of enforcing copyrights. I guess everyone encrypting all of their communication is the next inev
917.
▲
by
Peaker
14y ago
Supernatural "explanations" don't actually explain anything, they don't make any testable predictions. They aren't very useful or interesting. They're "not even wrong". A good argument for why the "mind is the brain": http://lesswrong.com/
918.
▲
by
Peaker
14y ago
Unity randomly loses focus of the active window for me, making it pretty annoying to use with the keyboard. Additionally, it is hard to remember which number activates which program in the side-bar, and unfortunately it waits a long time be
919.
▲
by
Peaker
14y ago
No, you can't write a function spread across modules depending on the value of its input, short of implementing a dispatch system.
920.
▲
by
Peaker
14y ago
Visitor was about multiple dispatch, which multimethods, type-classes and pattern-matching can all handle. However, it was also about iterating an entire data structure (in the GoF example, a document hierarchy). This creates confusion as s
921.
▲
by
Peaker
14y ago
Note that this feature is far from being useful only for class Read. The Monad class actually depends on it too: class Monad m where (>>=) :: m a -> (a -> m b) -> m b return :: a -> m a The type of "re
922.
▲
by
Peaker
14y ago
Can you implement the Read class in Clojure? class Read r where read :: String -> r (Let's ignore parse errors for our purposes here) Haskell supports return-type polymorphism. Clojure, being dynamically typed, cannot in general
923.
▲
by
Peaker
14y ago
Haskell's type classes generalize further than multi methods do. You get dispatch based on any part of the type signature, not just the arguments.
924.
▲
by
Peaker
14y ago
I'm giving Unity another shot these days and it's still frustrating me. I still find it significantly less convenient than the old Gnome 2 was, and that's after tweaking some of the more annoying offenders (simple Alt press bringing up a hu
925.
▲
by
Peaker
14y ago
In git you can edit the commit content as well retroactively.
926.
▲
by
Peaker
14y ago
Beyond branches being expensive, even commits in svn are expensive. They publish immediately, which requires proof-reading, more testing, before each commit. This means there's an incentive to wait with commits. Even if you do commit to a b
927.
▲
by
Peaker
14y ago
3d printers will print designs optimized for them, rather than ones optimized for mass production. Spend 100$ and wait a few days, or spend a few bucks and wait a few hours? The question is whether a coffee maker can be made from less mater
928.
▲
by
Peaker
14y ago
Pure functional programming does not mean there are no effects. The name "pure functional" is a misnomer, in my opinion. It just means "typed effects" -- keeping track of what effects pieces of code have.
929.
▲
by
Peaker
14y ago
Optimizing away getter/setter calls and function call overhead in general is well within the reach of current compilers.
930.
▲
by
Peaker
14y ago
They make their money from the car owners, so who are their customers?
More ›