Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
quatrevingts
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
quatrevingts
14y ago
Not sure what you mean by capabilities, even after looking back at the article. I like how Go's interfaces are sort of like Haskell's typeclasses, and I assume you meant something along those lines, but without parametric polymorphism you'
32.
▲
by
quatrevingts
14y ago
> Early in the rollout of Go I was told by someone that he could not imagine working in a language without generic types. As I have reported elsewhere, I found that an odd remark. What I find odd is that he makes this statement, but the
33.
▲
by
quatrevingts
14y ago
Well, if you're using Java, you don't have map in the JDK. You can use Guava (or write your own) to get Iterables.transform(). But then, anything you map turns into an Iterable. So often you have to iterate over the whole thing once agai
34.
▲
by
quatrevingts
14y ago
It does indeed require some explanation to understand why this signature was chosen over a "simpler" signature that might have provoked less mockery from the interwebs. But it's not really that difficult, and it results in a collections li
35.
▲
by
quatrevingts
14y ago
Low density suburbia is what makes the Valley appealing? You can get that anywhere in America for a fraction of the price. What distinguishes the Valley is obviously its status as a tech hub. And most people may prefer to live in a mansio
36.
▲
by
quatrevingts
15y ago
There's a difference between being suitable and being the only alternative currently available given the other constraints . There's lots of big software written in C not because C is convenient or well-suited for writing that kind of s
37.
▲
by
quatrevingts
15y ago
Of course, all of the countries with good health care have more regulation, not less. (Yes, even in Switzerland.) Do you know of any countries with minimal health care regulations and good outcomes? I suspect they don't exist, because th
38.
▲
by
quatrevingts
15y ago
Only the portion which is greater than 7.5% of your gross income can be deducted on Schedule A.
39.
▲
by
quatrevingts
15y ago
I don't see anything about the language though that would make it significantly faster to compile than Java... it seems to be a matter of development priorities for the implementation teams. (Dev mode can be pretty fast in my experience th
40.
▲
by
quatrevingts
15y ago
Dart just seems phenomenally boring. Now, I'm not necessarily against boring. A great synthesis of what we've learned thus far in PL design, breaking no new ground, but packaging it together into a nice cohesive whole would be very welcom
41.
▲
by
quatrevingts
15y ago
Plus, COBRA payments are (generally) not tax-deductible, so add another 30-40% more.
42.
▲
by
quatrevingts
15y ago
Looking into keywords a bit, it seems that auto-rename is only going to work for namespace-qualified keywords, and even then, it's going to be hard if the ::keyword syntax is used, because the current namespace is determined dynamically.
43.
▲
by
quatrevingts
15y ago
That doesn't sound like encapsulation though. If I have some complex map of maps with invariants I need to maintain, is there any way to ensure that client code doesn't mess with it?
44.
▲
by
quatrevingts
15y ago
The term "weak typing" does not really mean anything and confuses a lot of discussions about programming languages. Here you are clearly talking about implicit conversions, but weak typing is also used to refer to completely unrelated thin
45.
▲
by
quatrevingts
15y ago
No, what Scala is giving you is the choice: use structural types, and sacrifice some of the benefits of nominal types, or don't. Note that if you perform your renaming and now class C no longer matches structural type S, any part of the c
46.
▲
by
quatrevingts
15y ago
I find that when working with maps and sequences of maps with higher-order functions, types are especially critical to ensure that e.g. you didn't get your arguments backwards in your fold, or forget that your map values are sequences, not
47.
▲
by
quatrevingts
15y ago
I think Tcl is beautiful example of a certain point in the design space and extremely useful pedagogically. It's not that it has unnecessary deformities (warts) the way that PHP does. Someone could make a much better PHP than PHP by just
48.
▲
by
quatrevingts
15y ago
From a language design standpoint, Tcl is simple and beautiful. You can read its entire semantics in its rather short man page. It's got the homoiconicity of Lisp (with strings instead of lists) which enables very flexible syntax extensio
49.
▲
by
quatrevingts
15y ago
This is the standard price discrimination tactic that is used all over the auto industry, e.g. $700 for Bluetooth, $3000 nav systems, etc. It's good for getting people to spend as much as they're capable of.
50.
▲
by
quatrevingts
15y ago
Compared to NYC or Paris, the DC Metro is limited, but it's still the second-most-used system in the country, and far ahead of most American cities (SF in particular). Train headways are as low as 2 minutes during rush hour, and the system
51.
▲
by
quatrevingts
15y ago
Georgetown does not have a metro stop primarily because it would delay people getting to the heart of the city, where most jobs are. Georgetown is a primarily commercial / residential neighborhood, not a job center, and the ridership calcu
52.
▲
by
quatrevingts
15y ago
"Beautiful green spaces" does not describe the suburban experience. Highway medians, drainage ponds, and generic billboard-studded forests are not examples of natural beauty. If you're willing to go out past suburbia to the real country,
53.
▲
by
quatrevingts
15y ago
They're similar in that they both allow a type to be associated with a supertype post-declaration, which is unusual in an OO language; they differ in that Go uses structural subtyping rather than nominal subtyping which is much more prevale
54.
▲
by
quatrevingts
15y ago
Roundabouts are not applicable to dense urban areas or highways, which is where the traffic is.
55.
▲
by
quatrevingts
15y ago
Well, like you said, the fare has to make up for the time the driver is idle, so that problem goes away. Licensing is done to ensure passenger safety, and sometimes to restrict supply. The computer is not going to drive drunk or kidnap yo
56.
▲
by
quatrevingts
15y ago
Once you switch over to autonomous taxis, so many possibilities open up: Imagine eliminating most visible parking. A small fraction of the world's vehicle fleet is in use at any given time; the rest of the time it's taking up a parking spo
57.
▲
by
quatrevingts
15y ago
A 3 mile cab fare in Berkeley is $20+. The all-in cost of driving a basic private car is around 55 cents a mile (or 90 cents for a BMW). That only leaves license cost, so unless you need a $500,000 medallion, the rest goes to the driver.
58.
▲
by
quatrevingts
15y ago
More evidence that if a language lacks macros, people will find an alternate mechanism for language extension (bytecode generation) which is usually much more complex than macros would have been. On the other hand, reflection in the hands o
59.
▲
by
quatrevingts
15y ago
Option is implemented only by the two case classes Some and None. All case classes implement Product automatically. Having Option extend Product allows access to these methods from variables with the static type Option. I'm having a hard
60.
▲
by
quatrevingts
15y ago
You basically described Scala. The only difference is that it does have generics, and the dynamic invocation is currently experimental.
More ›