HackerTrans
TopNewTrendsCommentsPastAskShowJobs

saosebastiao

no profile record

comments

saosebastiao
·8 лет назад·discuss
There probably is, but I haven't used clojure for at least 4 years so I'm not the person to ask. Regardless, a linter might flag things like that, but in my experience the most pernicious ways that it hurts wouldn't be found because they exist outside the application due to IO boundaries. Things like API or database calls, etc.
saosebastiao
·8 лет назад·discuss
Not really. Although Clojure and Clojurescript are both dynamically typed, Clojure is strongly typed while Clojurescript is weakly typed.

Clojure:

(+ "1" 1)

ClassCastException java.lang.String cannot be cast to java.lang.Number clojure.lang.Numbers.add (Numbers.java:128)

Clojurescript:

(+ "1" 1)

"11"

They may be close, but that is all the reason for concern. There are a million ways that small semantic differences like this can completely fuck you and leave you in a debugging nightmare. I would rather use javascript, AKA the worst language ever invented, than a language that claims to be cross platform but with semantics that change depending on the platform.
saosebastiao
·8 лет назад·discuss
Thanks to the rise of SOA, basically any language no matter how obscure can claim multiple corporate users for for what are ultimately inconsequential projects.

But as long as we're using personal anecdotes, I saw several teams using clojure at Amazon when it was more popular. Less than two years later, all of them that I knew of (I was a clojure user too, interested in its use in the company, so I was keeping track) were at some stage of abandonment or rewrite into more boring languages. If you're lucky enough to keep your team small and ideologically aligned, it might work for your team, but I have yet to see large company make a significant bet on it (as in more than a few one-off teams) and come out ahead.
saosebastiao
·9 лет назад·discuss
Nope. A $30M yacht is more than I would ever want, and with a 15 year loan will set me back around $3-3.5M per year, including maintenance. Nobody buys with cash in the yacht industry.
saosebastiao
·9 лет назад·discuss
Net of taxes, and given the availability of hedge funds for someone of his wealth, 8% is probably on the low end.
saosebastiao
·9 лет назад·discuss
Yeah, I only included things that I'd actually want. If I didn't want something (like a trip around the moon, or a patek philippe watch), it wasn't included. Maybe I'm pretty low maintenance, but everything I added up seemed unmaintainably ridiculous to me.
saosebastiao
·9 лет назад·discuss
I like to think about it like this: With a wealth of 92.3B, even earning a moderate 8% net return on that wealth, Jeff Bezos needs to spend $20.2M per day just to not get any richer.

Now I've spent a lot of time daydreaming about how awesome it would be to be rich. One day I added up what it would take to have the most obscene, ridiculously opulent lifestyle imaginable...private jets, presidential suites, chauffers, megayachts, basically anything and everything imaginable that I would possibly want if money were no object. I never surpassed a requirement for more than $20M per year. $20M per day is ludicrous...and that's just what it would take for him to not get any richer.
saosebastiao
·9 лет назад·discuss
I don't know. Javascript is pretty slow as it is, and clojurescript is even slower. There is an inherent problem with compiling a dynamic typed language to another dynamic typed language...if your target language doesn't have the same semantics as your source, you end up having to embed a bunch of runtime code into your compiled output, or sacrifice compatibility. [0]

With a strong statically typed language like scalajs or elm, you have a lot more static reasoning that can be done at compile time, allowing you to omit a lot of runtime support.

[0] http://www.lihaoyi.com/post/FromfirstprinciplesWhyIbetonScal...
saosebastiao
·10 лет назад·discuss
I'm afraid you have it backwards. Scala's type inference comes at a slight cost (you have to annotate parameters), but it enables a much more powerful type system than even HM allows for.
saosebastiao
·10 лет назад·discuss
It's not. I actively refuse to use Windows and have never had any trouble installing or using F#. I've only really used it in the last 1.5 years or so, so maybe what you claim was true in the past, but it is not true anymore. There are other reasons to not like it though. For me those would be a lack of HKT and functors, and its primitive compiler optimization due to relying heavily on a VM built for a very different language.
saosebastiao
·14 лет назад·discuss
Please, please, please include a specification for table creation