Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sixbrx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
241.
▲
by
sixbrx
11y ago
I don't think Rust was ever intended to be primarily a research language. From what I gathered even from early docs (in Graydon's reign), it was intended to implement ideas previously introduced in research languages in a practic
242.
▲
by
sixbrx
11y ago
> regarding "box" vs. "block". Other languages > (C# is the only one that comes to mind off-hand) F# actually uses box much like Rust does: // box an int let o = box 1 Examples: http:
243.
▲
by
sixbrx
11y ago
He addresses this issue - see the part about using hashes for everything so neither names nor lib versions matter, only the contents do, identified by hashes.
244.
▲
by
sixbrx
11y ago
What's too bad is that Java had a chance to handle alternatives properly as sum types, when enums were being added. But the designers chose instead of sum types, to add them as yet another kind of "object" that have to have
245.
▲
by
sixbrx
12y ago
OK I can agree with that, I think I was taking what you wrote as a wider endorsement of Scala's approach than what you intended.
246.
▲
by
sixbrx
12y ago
I don't think anything's much orthogonal to partiality of functions in languages with strong type systems, unfortunately :) You wrote that array indexing is "a partial function from integers to the value set". If we
247.
▲
by
sixbrx
12y ago
> Scala gets this right. I don't know, I never liked how all FunctionNs are sort of "unofficial" partial functions (because they may throw), and PartialFunctions are then made a subtype of FunctionN, because they have an e
248.
▲
by
sixbrx
12y ago
> Github is not at all important to China If that were the case, I don't think they would have backed down and allowed access to Github again.
249.
▲
by
sixbrx
12y ago
Alternatively, the NullPointerException could be viewed as a simple leakage of implementation details, which is a common issue with exceptions.
250.
▲
by
sixbrx
12y ago
The square brackets are used already for type parameters on types. I do think they are easier to read than angle brackets are, for some reason. There was some discussion on this point in the Rust community as well recently where it was note
251.
▲
by
sixbrx
12y ago
I don't think he's conflating the ideas, so much as pointing out that Scala's ideas of "objects" can do what other module systems can do, but are "first class" in the sense that the can be created on the f
252.
▲
by
sixbrx
12y ago
Turning on search for special cases like 20GB of local email sounds like the perfect reason to opt-in to some sort of specialized search system of the user's choosing.
253.
▲
by
sixbrx
12y ago
Yeah I agree that for power users who use OS X a lot this is not really an issue for long, but it is an annoyance and an unnecessary one at that. For more typical users it's a bigger problem I think, because they never learn to organiz
254.
▲
by
sixbrx
12y ago
I don't think Home is in the favorites pane anymore as of Yosemite (just created a new user to test ... it's not). What's worse is that choosing something known to be under the home, like Desktop or Documents, yields a bare w
255.
▲
by
sixbrx
12y ago
I agree that composability is an important concern, which is why I like to use what someone above called an "ARM" (abstract relational model) library, instead of an ORM. I'd put in that category Squeryl (Scala), jooq (Java)
256.
▲
by
sixbrx
12y ago
Or, maybe they're just really into the subject at hand, peer groups be damned, is that a possibility too?
257.
▲
by
sixbrx
12y ago
I agree and I think F# would look a lot more attractive to functional programmers if it had some type of polymorphism other than the C#-like generics and traditional OO subtyping. I can understand not choosing to go the ML route "down
258.
▲
by
sixbrx
12y ago
If I understand you, I think it's a bit much to expect ScalaJS to somehow change the platform it is targeting, which is the browsers as accessed via Javascript (ie. without requiring plugins which would have made it DOA for most use ca
259.
▲
by
sixbrx
12y ago
What's really lovely is when you take the electrician's attitude (professionalism), and always do the tests and documentation anyway, and then find that you are avoided for new jobs because of your "perfectionist" attitu
260.
▲
by
sixbrx
12y ago
For copy/paste on Linux, I use ctrl/shift + insert. Seems to work everywhere including command line.
261.
▲
by
sixbrx
12y ago
I had not, thanks for the link. I haven't given up on Julia!
262.
▲
by
sixbrx
12y ago
In my experience Julia is quick with low level array oriented programming which doesn't allocate ("C in Julia"), but if the garbage collector is needed within loops or you use anonymous functions there then you'll suffer
263.
▲
by
sixbrx
12y ago
I think it's more than that - it's also that type classes allow a type of polymorphism that is not the subtyping polymorphism that mainstream OO depends so heavily on. ML attacks from a different direction with its parameterized
264.
▲
by
sixbrx
12y ago
Isn't subtyping OO the principal way to do polymorphism in F#? I ask because the last time I looked, it didn't do type classes, nor ML modules, but maybe that's changed. Scala has a pretty powerful notion of type classes an
265.
▲
by
sixbrx
12y ago
FYI, also consider Stepanov's book together with Daniel Rose, just out (I haven't read it yet): From Mathematics to Generic Programming http://www.informit.com/store/from-mathematics-to-generic-pr...
266.
▲
by
sixbrx
12y ago
INDOOR ranges, to be clear. I don't know how people can stand shooting in them because of the increased percussion, regardless of lead poisoning.
267.
▲
by
sixbrx
12y ago
Do the Oracle or OpenJDK JVMs deal well with heaps that large? I have no interest in other JVMs because my employer would not consider switching and I can't say I blame them.
268.
▲
by
sixbrx
12y ago
I work in the US as a programmer for the last 15 years, and have had female managers everywhere I've worked.
269.
▲
by
sixbrx
12y ago
Dude who likes to work alone keeps a zip archive of all old versions of all changed files in git, and git becomes slow.
270.
▲
by
sixbrx
12y ago
On the other hand, not many languages use lowercase 'i' for complex number literals, in fact I can't think of any right now.
More ›