Better HN
topnewbestaskshowjobs
Log inSign up

hellofunk

9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions

John Bellick, Mexico City
Submissions

comment 8y ago · link · parent

They have been linked many times here on HN over the last 2 years.

comment 8y ago · link · parent

I wonder what that popular book Why We Sleep would say about this, and the other suggestions here in the comments. I guess I'll have to read it to find out.

comment 8y ago · link · parent

I guess it depends on how broad a definition of "art" we are using.

comment 8y ago · link · parent

I entirely agree with you. It's one thing for computers/AI to emulate the creative work that humans have already achieved, essentially copying, or porting, or manipulating prior art, but it's something else entirely to genuinely create something new and fresh and connects with people emotionally, and I have yet to see any evidence that AI is close to this.

comment 8y ago · link · parent

I think this is pretty common. If you get a hospital bill and the insurance already paid a lot, call up the hospital and complain, and it will often be lowered. This happened to me once, a $15k bill was reduced to $3k. The insurance had already paid $50k or so. Hospitals don't really seem to care about the extra portion the patient is supposed to pay. The try to get it, but don't make much fuss when you challenge it, since they already got what they really wanted, the insurance company's money.

comment 8y ago · link · parent

I recently had to write my own equals and hashcode functions in a Java project (a language relatively new to me) just so I could store my custom object as a key in a HashMap. The experience of doing this seemed so silly and unnecessarily low-level to me, that I almost abandoned the whole codebase and looked for another language to start over.

comment 8y ago · link · parent

There is more to consider than runtime exceptions. If it takes one-third or less time to write in Clojurescript, for example, this saves much cost. Even if you add in more runtime debugging, you still save time in writing code, and time saved in the compilation-fix cycle. Then of course, you save all the significant added time required in Elm to do non-trivial things with JavaScript libraries, which is inevitable.

One language isn't necessary better, but I do think one can be argued to certainly be less expensive.

Give two teams the same project. One team will use Elm and needs to write 20K lines and figure out some complicated JS interop. The other team uses ClojureScript and will need to write 5K lines and not worry about handling JS libraries. Which team costs more money?

comment 8y ago · link · parent

Ha! The lambdas and tools surrounding them in C++11 and later have vastly improved the ability to make programs much easier to read and reason about.

comment 8y ago · link · parent

There's not a better metric? I disagree. I think the best metric is "how much does it ultimately cost to write and maintain the software?"

comment 8y ago · link · parent

C is C++ minus object-oriented features, increased type-safety, template meta-programming, lambdas, and many more features.

comment 8y ago · link · parent

You are equating money with success.

comment 8y ago · link · parent

Wow: https://news.ycombinator.com/item?id=17843149

comment 8y ago · link · parent

Lol Elm devs are often bragging about their huge line counts. Meanwhile I rewrote an Elm project in Clojurescript and it removed 75% the line count. Large line count is such a strange metric.

comment 8y ago · link · parent

Common with many languages, actually.

comment 8y ago · link · parent

Photoshop does this. See your sister commenter.

comment 8y ago · link · parent

This was my #1 turnoff for Haskell as well. All these operators and functions, each with possibly varying precedence as well as different fixities. I was constantly having to lookup how the function was actually being called -- which of its surrounding entities were a part of the function call, and in which order did the calls take place? In addition to this complexity, the functions are often cryptic little characters (operators) that just make the readability worse. Programming languages should make our lives as developers easier, right?

comment 8y ago · link · parent

I've been primarily a professional Clojure developer for several years, that's how I earn my living, and thus I have used the language in many contexts. In the beginning I was in love with it, in hindsight at least part of this love was the thrill of doing something new. But my appreciation for that style of programming has gradually declined over the last 5 years.

FP is great for many little things you might have to do. But for larger architectural considerations, I still find notable advantages to creating custom classes that have their own public API, private internal implementation, and that manage their state internally. In the absence of this, you have lots of functions that are basically sitting alone with their pure inputs and outputs, and to manage state requires more effort, not less, in a lot of situations. Each of these functions has to receive the thing they are acting on, and a separate group of functions manages the actual mutation, acting as "controllers" between these more pure functions and the actual stored state. The result is a less elegant program structure sometimes.

FP enthusiasts like to say that "it's better for many functions to operate on common data structures than it is to have many custom data structures with their own functions." The problem in my experience is that often, these pure functions are only serving one purpose geared for a particular data layout, and thus they might as well be coupled to it; the lack of a backbone in larger FP architectures can be frustrating. In Clojure, you have maps, and all maps behave the same. Great. But not all maps are actually the same. Each map ultimately has its own structure, and these functions that operate on a particular map are really operating on a particular structure a lot of the time. So you end up with increased verbosity and more difficult-to-follow code structure than if you just combined the data and its functions in one place: a class. The record-protocol idea attempts to alleviate this, but I don't feel it really gets to the heart of the issue.

I think OO and FP each solve problems in equally meaningful ways and different tasks are better suited to one or the other. I particularly like languages that don't force you into a particular model. Java and Clojure are quite opinionated (in opposite ways) and thus often inflexible for certain tasks. My favorite language for blending these techniques has become C++ but I don't get to use it as much. It offers true FP-style programming with constructs like std::function. I wish Java had gone as far as C++11 did; the Java lambdas and the requirement that they can only be type defined using a static interface is not really helping to adopt the paradigm.

comment 8y ago · link · parent

What are you talking about... “violence supporting”?!

comment 8y ago · link · parent

I agree there are valid tradeoffs. In my experience, because Clojure code is so concise and tiny by comparison to Elm or most other language's, refactoring is usually replaced by actual re-writing, since the small amount of code is just as easy to architect again, maybe just saving particular functions, rewriting others.

comment 8y ago · link · parent

I guess it all boils down to how you want to spend your time. Elm typically requires at least 4x the lines of code and at least 10x the time of dealing compilation issues compared to Clojurescript. So ultimately I think this is just a question of a desired workflow in one language vs. another. Any time spent on Closure-related issues (which have never personally bit me on any project -- I just use the library itself as an extern file and everything has always worked with no effort), is made up for with the fast development cycle on Clojure projects. Even including the increased runtime debugging in Clojurescript vs. Elm, Clojurescript has always provided me a significant productivity advantage over every other JS-family toolkit.

comment 8y ago · link · parent

10 years behind? There might be competitors (perhaps) but the Closure compiler does quite a lot of impressive engineering -- not just the tree shaking and identifier renaming that Elm is trying finally to do, but also automatic function inlining, loop unrolling, numerous other performance tweaks. And it all works fantastically, very reliable. I've been using it for 4 years on a huge codebase and I've not once had a problem that was due to the Closure compiler. It's robust and stable.

comment 8y ago · link · parent

This is almost never a problem since you simply use normal externs file for whatever library you are using. You never take an external library and run it through the closure compilation process, only your clojurescript code is put through those optimizations.

comment 8y ago · link · parent

Did Elm change how it uses strings as a fundamental part of certain language constructs? That would break the advanced optimizations. According to the github issues tracker as well as mailing list comments from last year, these were not likely going to change in the language and therefore advanced optimizations are very fragile and likely to break on code in subtle ways.

Note that Elm has always appeared to work on the surface with advanced optimizations, but the bugs would creep in and show up eventually, and the official advice has always been not to use those optimizations.

comment 8y ago · link · parent

> If you have ever tried to use ADVANCED_OPTIMIZATIONS in Google Closure Compiler, you know that this is extremely difficult even when you write all the code yourself

Perhaps, but it’s quite nice when you use languages that were built to support Google Closure from the beginning, like Clojurescript. Then it is painless and built into the build process automatically, and you get to benefit from all the other great advantages of advanced optimizations in Google Closure that this article does not mention, and which Elm still cannot support or offer an alternative for, like automatic loop unrolling and other notable performance improvements.

comment 8y ago · link · parent

Netflix is in the game of "filler" content. They will make money even if the content is mediocre because (many) people will turn to Netflix even if the quality is not stellar. That's unfortunate but a reality of the business model. If it didn't work, they wouldn't keep making lots of crap.

comment 8y ago · link · parent

Same in Europe.

comment 8y ago · link · parent

In Europe, anyway.

comment 8y ago · link · parent

> DOBs are illegal

And yet recruiters frequently request them up top on resumes.

809.

My Amsterdam is being un-created by mass tourism(theguardian.com ↗)

2 points · by hellofunk · 8y ago · discuss

810.

Rest API Performance Comparison Between Golang and Play(medium.com ↗)

3 points · by hellofunk · 8y ago · discuss

1
262728
110