872 karma · joined Sep 20, 2013 (13y ago) · 164 submissions
comment 6y ago · link · parent
For example, in an election with 100 votes cast. If 10 signatures are suspicious, you only do extended validation and open them if the election was won by a margin smaller than 10.
comment 6y ago · link · parent
comment 6y ago · link · parent
When you’re someone making near minimum wage in the US, at a job you don’t particularly like, I think the number ends up being significantly lower than a million.
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
module Example
def self.some_method
"string"
end
class Foo
getter :var1
def initialize
@var1 = SomeUtilities.something
end
end
module SomeUtilities
def self.something
Example.some_method
end
def self.do_something_with_string(input : String)
puts input
end
end
end
Example::SomeUtilities.do_something_with_string(Example::Foo.new)
If you change Example.some_method to return :symbol, you now get a type error on the final line.comment 6y ago · link · parent
- global inference is more trouble than its worth. some way to opt sections of code out of global inference in exchange for faster compile times and better type error messages would be wonderful
- conflicting/duplicate C bindings in libraries aren’t easy (or even possible sometimes) to reconcile
- a lot of standard library interfaces to system stuff (e.g. sockets) are hard to extend for additional uses. there’s a number of reasons for this, but among them: enums wrapping simple integer based enums, but not actually covering all the values.
- parser is hard to reuse outside of the compiler itself, which is an impediment to making neat tools.
- some strange choices around co/contra-variance when dealing with arrays
comment 6y ago · link · parent
With “just” HTTP2, you’d be doing one of the following:
- creating bespoke endpoints
- creating an adhoc GraphQL-like API
- introducing latency equal to the round trip latency multiplied by the number of layers the query is deep
comment 6y ago · link · parent
There’s also not strong evidence that there are two sufficiently different strains. Viruses experience small, mostly meaningless, mutations with great frequency. The research talking about S and L types are actually just an arbitrary categorization of many different mutations of the virus.