Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gnuvince
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
541.
▲
by
gnuvince
14y ago
When people mention that they don't find generics necessary, they should mention the type of work they do. For someone building an application, I can believe that one can do without generics, and still get a good application out. However,
542.
▲
My quick review of Acme
(gnuvince.wordpress.com)
3 points
by
gnuvince
14y ago
|
0 comments
543.
▲
by
gnuvince
14y ago
Why another web-based editor? What's wrong with a native editor?
544.
▲
by
gnuvince
14y ago
>> Lets not forget how many security exploits we have to thank C for exactly this mis-feature. > No actually we have to thank sloppy and/or naive programmers. The C language is clear in that it doesn't hold your hand. While it i
545.
▲
by
gnuvince
14y ago
Perhaps the language Clay ( http://claylabs.com/clay/ ) might fit your tastes better?
546.
▲
by
gnuvince
14y ago
I feel we may be arguing without me having properly defined what I meant, so I will try to remedy this. Consider the following code: a, _ := some_computation_that_may_fail() b := f(a) In Go, if there was an error in `some_comp
547.
▲
by
gnuvince
14y ago
The `either` function is really crippled compared to a proper ternary operator; it works only for strings, and both `a` and `b` are evaluated at the call site, so side effects in those expressions are out.
548.
▲
by
gnuvince
14y ago
As you point out, in both cases the program will crash, which for many people is preferable to the program churning along with invalid data. In Go with multiple return values, it is possible to have a code path where there's an error but s
549.
▲
by
gnuvince
14y ago
One problem with Go is that is uses multiple return values to indicate errors instead of alternative return values. When you call strconv.ParseFloat, you always get back two values, the error code and... wait, what float do you get back wh
550.
▲
by
gnuvince
14y ago
I recall hearing about Don Syme (F#'s creator) talking with the guys working on garbage collection in .NET and when they saw his allocation numbers, they pretty much said that "this much allocation means there's a bug in the program". Diff
551.
▲
by
gnuvince
14y ago
Can we please stop putting JavaScript everywhere? It's not a good language and people have a tendency to produce frailer code with it than they would otherwise.
552.
▲
by
gnuvince
14y ago
7 years? Really? Cause resource ids in PHP are not recycled, and I figure that at some point during those 7 years, you'd have opened enough connections, files and database handlers that you'd reach the limit of integers and PHP would just
553.
▲
Building a blog with Snap and Heist
(bonus500.github.com)
3 points
by
gnuvince
14y ago
|
0 comments
554.
▲
by
gnuvince
14y ago
> Disadvantage is more verbosity, but it's a trade-off. When I was learning Haskell, I wrote a program to count the value of a cribbage hand. The code was half the length of an equivalent JavaScript program. The expressiveness of a la
555.
▲
by
gnuvince
14y ago
What do you mean by "the type inference isn't as cool as what's in Haskell"?
556.
▲
by
gnuvince
14y ago
What do you attribute this to? The static typing of Scala or the libraries that you use?
557.
▲
by
gnuvince
14y ago
What dynamic language were you using and which language are you using now?
558.
▲
by
gnuvince
14y ago
Not sure I'd still qualify K&R as an excellent introduction to C in this day and age; the book lacks focus on safety, which is so important today. It's fine for learning the language, but a language is more than its features.
559.
▲
by
gnuvince
14y ago
Hate to break it to him, but parentheses require hitting the Shift key as well. Twice.
560.
▲
by
gnuvince
15y ago
From json.org: "JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate." Humans are mentioned before machines. Comments improve hum
561.
▲
by
gnuvince
15y ago
Greatly simplified the parser? It's probably 10 lines of code.
562.
▲
by
gnuvince
15y ago
Not available in my country :(
563.
▲
by
gnuvince
15y ago
As other commenters have said, in statically typed languages you try and design your program so that more errors are caught at compile time. As an example, watch Yaron Minsky's "Effective ML" talk. He shows how he takes a data structure a
564.
▲
SML/MLton vs OCaml for Erlang Integration
(blog.10io.co)
1 points
by
gnuvince
15y ago
|
0 comments
565.
▲
by
gnuvince
15y ago
Wadler's Law: http://www.haskell.org/haskellwiki/Wadlers_Law
566.
▲
Mythryl: an implementation of SML with a C-like syntax
(mythryl.org)
2 points
by
gnuvince
15y ago
|
0 comments
567.
▲
Designing a language should not be done by throwing a bunch of features together
(mythryl.org)
3 points
by
gnuvince
15y ago
|
0 comments
568.
▲
by
gnuvince
15y ago
I don't think anyone says that mutable state should be completely eliminated; the argument is that it should (1) not be the default, and (2) be made explicit through the type system.
569.
▲
by
gnuvince
15y ago
That latter; they want to be able to build a large and complex web engine and have it be as safe as possible without sacrificing performance.
570.
▲
by
gnuvince
15y ago
It is a curse; I'd love to settle on a nice language, but the hunt is just so exhilarating!
More ›