|
EngineerJoe posted:Super interesting thread. It's neat to see the thought that goes into designing a language that will be as important as Swift. My question is will we be able to get the string representation of enums? Also can you add a deriving mechanism like Haskell so I don't have to reimplement stuff like equality and string representation + json serialization?
|
# ¿ Jun 3, 2014 19:34 |
|
|
# ¿ Apr 29, 2024 04:10 |
|
Doh004 posted:I think he was trying to be nice by not revealing what her heard because, as rjmccall had mentioned earlier, they try to keep their non released names quiet? Yeah they got sued by Carl Sagan of all people regarding a code name. Are y'all gonna let me program kexts with this?
|
# ¿ Jun 6, 2014 22:15 |
|
rjmccall posted:I have spent an amusing amount of time talking about making a monad protocol recently. Monad, functor,applicative are foundational for the neat abstractions you get. Having parser combinators is pretty great. And then you can do stuff like ghc.generics, free monads, uniplate and all the stuff that makes life easier when dealing with regular old polymorphism. F# is stuck because the clr can't deal with it iirc It would make a lot of sense, especially if you already elaborate into a language that supports it. Mostly for library authors.
|
# ¿ Jun 11, 2014 00:09 |
|
FWIW GHC has a totally bizarre calling convention designed around the STG, the papers on which everyone should read if they're implemented a functional language LLVM doesn't support register pinning either which is among the reasons why the llvm backend has not taken over. Malcolm XML fucked around with this message at 16:14 on Jun 22, 2014 |
# ¿ Jun 22, 2014 16:09 |
|
ultramiraculous posted:http://www.jessesquires.com/apples-to-apples-part-two/ No poo poo it's faster all he's doing is showing that objc_msgSend is a bottleneck Dump them to (C) arrays and use qsort on the values and/or cache the comparator and it'd be much faster. That said swift does it by default.
|
# ¿ Aug 9, 2014 16:00 |
|
rjmccall posted:Basically, three reasons. (Also, in this particular case the "you" is specific: this is primarily my design.) So why not C++ style RAII? too implicit? i can see an argument for both, with the IDisposable/RAII being what you do unless you need something special in defer. interesting to see the rationale.
|
# ¿ Jun 14, 2015 23:22 |
|
quote:
Are the apple script folks around?
|
# ¿ Feb 4, 2016 00:59 |
|
|
# ¿ Apr 29, 2024 04:10 |
|
rjmccall posted:It's a bug in the lexing of hex literals. The problem is that there is a floating-point hex literal format, and what follows the dot is, in fact, more hex digits; so we're slurping up the '.' and the 'a' and then failing to backtrack correctly when we see the 's'. how often does a floating point number in hex notation come up? maybe FastInvSqrt?
|
# ¿ Jun 11, 2016 14:46 |