Edit: the page refers to open classes, and I think the idea is that you can redefine methods on Object and have it apply to every object.
1,120 karma · joined June 7, 2009
Edit: the page refers to open classes, and I think the idea is that you can redefine methods on Object and have it apply to every object.
> # If `sub` is a formal type, then it is accepted if its bound is accepted https://github.com/privat/nit/blob/2323b17d46c873e8c6c41b75d...
Ruby is dynamic and the interpreter is feature-rich. People are just exercising self-discipline. Nit intends to be “a robust statically typed programming language” which is very different.
Also, could you point me to the Nim feature? All I see is overloading.
echo b |awk '/b/{print a}' a=4:%!sed …
For the really complex stuff, there's rejit[0]. I wonder if LuaJIT would work; these tools also need IO tricks to be fast.
> Unlike many object-oriented languages, generic classes in Nit yield a kind of sub-typing. For example, Pair[Int] is a subtype of Pair[Object].
Sounds completely broken. What if Pair[E] is contravariant on E?
class Pair[E]
fun contains(E): Bool
fun clamp(E): Bool
end
> http://nitlanguage.org/refinement/
(redefining any method)That's spooky action at a distance. It breaks modularity, could cause packaging hell.
Also, the SourceForge link was for pastebin source code[0] and not an actual pastebin.
IMHO it was a lazy request from the copyright lobby, which is seeking to criminalize anonymous text and links. They don't care that it's insane, the world isn't changed by being reasonable; at worst they'd have shifted the Overton window and made the other wing of the lobby look sane. The politicians barely care, and another level of jaded drones didn't bother to contact anybody[1], put up a DNS block and went home.
https://www.debian.org/doc/manuals/maint-guide/advanced.en.h...
Yet another caveat: the differences are often less that 1%, statistically not significant.
After that, if you want to optimise, you need an applicative benchmark. A microbenchmark won't work because type specialisation runs for (traces of) the program as a whole.
Announcement http://www.passmark.com/forum/showthread.php?4836-MemTest86-...
Previous discussion https://news.ycombinator.com/item?id=8713411
Or they could adopt ZeroVM/NaCl, which would shift the balance towards compiled languages again.
Whenever something needs fixing in TLS we always hear about the OpenSSL patch first, so it seems like the project is healthy. I think this (and some of the context around the Debian incident) points out that we should be looking at replacements focused on implementation safety (bluishcoder's ATS-based demonstration looks like the right direction), good defaults, and a simpler API (one that also doesn't give so much leeway to shoot oneself in the foot through configurability).
- https://chromium.googlesource.com/apps/libapps/+/master/hter...
- https://chromium.googlesource.com/apps/libapps/+/master/nass...
- https://groups.google.com/a/chromium.org/d/forum/chromium-ht...
FWIW, I don't really consider the first issue fixed. The trigger was lost in a refactoring that can't be backported, and there are probably other ways to trigger the issue.