Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
octo_t
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
181.
▲
by
octo_t
13y ago
raspberry pi's are ARM and amd64 is amd64 (for intel/amd processors)
182.
▲
by
octo_t
13y ago
but they are safe until you decide to do that deferencing, otherwise they're just uint_ptrs really.
183.
▲
Sage Programming Language: Hybrid Type Checking
(sage.soe.ucsc.edu)
1 points
by
octo_t
13y ago
|
0 comments
184.
▲
by
octo_t
13y ago
I love type theory, but I think a language like Sage[1] is probably the most interesting way forward. [1] - http://sage.soe.ucsc.edu/
185.
▲
by
octo_t
13y ago
One of my favourite parts of Elementary was the appearance of Malboge, because it was a technical detail which made sense . I mean the actual code was bogus, because I don't think anyone has made something that complex in it before, b
186.
▲
by
octo_t
13y ago
function take_dir { mkdir -p "$1"; cd "$1" ; }; alias take="take_dir"
187.
▲
by
octo_t
13y ago
I was under the impression the Meyer-Briggs was essentially pseudo-science?
188.
▲
by
octo_t
13y ago
A good example here would be C++. Look at how long it took for C++11 to be implemented, but now at least two compilers are feature complete (gcc + clang) and now they're on schedule to be feature complete for C++1y[1], with implementat
189.
▲
by
octo_t
13y ago
To be honest, a reason I like it is that if they free-think and say 'what about sed, oh of course thats three characters', shows what they know. Also whether shell-built ins count too.
190.
▲
by
octo_t
13y ago
I've found 'list 10 two-letter linux commands and their use' They don't actually have to think of 10, but their answer can show what they've actually had to do on a *nix system. Its also lets you prod them with ques
191.
▲
by
octo_t
13y ago
part of something's merits is its popularity.
192.
▲
by
octo_t
13y ago
companies are allowed to give terms stating how their products are sold. presumably the same laws that allow Apple to say that in-store displays must meet certain standards (i.e. no broken/smashed devices etc)
193.
▲
by
octo_t
13y ago
do you know what contracts are ? Typical contracts are 'assert (arg != null)' or 'assert(arg1.length == arg2.length)' or 'assert (hour >= 0 and hour <= 23)'
194.
▲
by
octo_t
13y ago
Heh, same time as my edit. Those methods should be private (i.e. they just exist for building the deck, its the consumers responsibility to shuffle / split into multiple decks etc, as well as assigning value to each card).
195.
▲
by
octo_t
13y ago
So the Scala solution for this is: http://ideone.com/Vussjh object Cards { sealed trait Suit case object Spades extends Suit case object Clubs extends Suit case object Hearts extends Suit case object
196.
▲
by
octo_t
13y ago
Come back to me when there's a standard for JSON schemas so my data can be actually strongly-typed + verified.
197.
▲
by
octo_t
13y ago
How are collections broken? Views are deprecated/set to be deprecated, I don't really use scala.io, I find java io sufficient for my needs, scala.xml is being split out in 2.11 and macros will let people use a third party implemen
198.
▲
by
octo_t
13y ago
there is literally zero reason to block sites such as the NSPCC and Childline. Zero. Parents being fundamentally able to block these sites is wrong.
199.
▲
by
octo_t
13y ago
you sure seem to like Telegram. Also please don't use "butthurt".
200.
▲
by
octo_t
13y ago
Like the old proverb goes, ignorance is bliss.
201.
▲
by
octo_t
13y ago
Optional GC[1] in a language like C++, and Rust has pointers with task-local GC [1] - http://en.wikipedia.org/wiki/Boehm_GC
202.
▲
by
octo_t
13y ago
regrettably this is against RFC 2142[1], which states that you need to leave certain mailboxes open (such as abuse@domain, webmaster@domain etc) [1] - http://www.ietf.org/rfc/rfc2142.txt
203.
▲
by
octo_t
13y ago
Scala is best.... if you want scalability and modularity, but some parts of the language are complex and take time to learn
204.
▲
by
octo_t
13y ago
http://stackoverflow.com/questions/2693067/what-is-meant-by-... they are kinda cool, but also limited as hell.
205.
▲
by
octo_t
13y ago
I don't think the author is denying this fact at all? There's plenty in Scala that other languages do better, the author's claim is that no languages puts all of its features together better than Scala.
206.
▲
by
octo_t
13y ago
Dependent types to the rescue! Unfortunately dependent types are incredibly difficult to get working (Scala's type system is already turing complete (and can handle path-dependent types) and true dependent types would make reasoning ab
207.
▲
by
octo_t
13y ago
Adult human beings are not rational actors, why on earth would you expect prepubescent children to be? the age group that is most targeted by advertising (because they're the most impressionable).
208.
▲
by
octo_t
13y ago
Please read Cordelia Fine's Delusions of Gender, because it goes into exactly why things like this are bogus science.
209.
▲
by
octo_t
13y ago
So as i understand it the 'use case' is for coercing 3rd party types into your own type hierarchy. Suppose you had: trait Foo { def bar(): Int } and 3rd party library had final class FooBar extends java.lang.Objec
210.
▲
by
octo_t
13y ago
Ding ding! (That's the answer I'd give if someone asked me this question)
More ›