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 11y ago · link · parent

Exactly; the whole idea of "deep dup" doesn't even exist in Clojure. It's a non-issue. Some languages go so far as to encourage actually serializing and then reading back in a data structure as a form of doing a deep duplication! (I've done this in Objective-C, based on advice in popular books.) This is an extreme example of the pitfalls of mutable data in many circumstances.

comment 11y ago · link · parent

Hickey has stated elsewhere that optional values don't really make sense in a dynamically-typed language.

comment 11y ago · link · parent

>I think clojure helps with the speed of allocating new immutable structures by using copy on write strategies behind the scenes.

No, it's not copy on write in the sense that COW means in other languages. Data in clojure is persistent, so usually even an altered piece of data is not actually copied, only the tiny bit that changed is added, if necessary. This is very different than, for example, Swift that implements copy on write, but the whole data structure is copied even if the change is minor.

Additionally, you say:

>When we're dealing with sequential tasks, mutating data is much faster than allocating new data structures

That would be true in cases where the entire data piece is new; but so much of what you do in any language involves interative changes over existing data, and again because of clojure's persistence, new allocations are often not happening at all in many cases.

...However, I do agree with most of your other points :)

comment 11y ago · link · parent

Forgive me but can anyone summarize how to actually play this game?

comment 11y ago · link · parent

Nice summary. It's really interesting stuff isn't it?

3186.

NASA: Inevitable, irreversible 3-foot minimum sea level rise(edition.cnn.com ↗)

1 points · by hellofunk · 11y ago · discuss

comment 11y ago · link · parent

That's not entirely true. React Native does indeed run on the native device, not in a JS "container". The JS part is a bit of glue code. In the case of iOS for example, React Native uses the same exact UI toolkit that runs natively on the iPhone as if you have written it in Swift or Objective-C. Apple's JavaScriptCore exposes the native elements with a JS api, but they are not running inside JS. Only a minor part of the glue is interpreted as JS, and it's not usually the CPU-intensive stuff.

comment 11y ago · link · parent

I can understand, but JS is not what it used to be. Things like React, OSX JavaScriptCore, Qt's native JS engine (which also allows you to build native apps for any desktop or mobile platform using Clojurescript), the use of Clojurescript server-side with Node, the state of affairs in JS are changing very rapidly, and Clojurescript is right there for leveraging all of it.

comment 11y ago · link · parent

They are both beautiful in their own way. Haskell is more pure, certainly, and closer to mathematical beauty, definitely. But the extraordinary flexibility of a lisp, which Clojure does immensely well, makes it more powerful than any language I've experienced for quickly expressing or manipulating an idea. Any program written in Clojure could eventually be refactored into another language, but its strength as a dynamic lisp makes it possible to really get to the heart of a problem and work out its solution without anything else getting in the way.

comment 11y ago · link · parent

Most Clojure devs (myself included) are not building projects right at the REPL and indeed we do typically write normal code files, each file is a namespace. The changing of a Var is not a typical Clojure idiom at all, and I don't think I've ever seen it done in any production code or the big Clojure libraries.

comment 11y ago · link · parent

For mobile a lot of folks are now using Clojurescript. There have been several highly rated discussions on here about the breakthroughs in the Clojurescript community for getting it to operate very quickly on mobile devices.

comment 11y ago · link · parent

Because -> is not a typical functional idiom, it's a macro specific to Clojure, and anything you can do with -> you can also do in the standard functional way, and beginners are better served by understanding the way a lisp works rather than only get taught syntactic sugars. Keep in mind that -> as a macro does not evaluate its arguments the way a function does, which complicates the understanding for a beginner tremendously, since Clojure is actually an eagerly-evaluated language.

comment 11y ago · link · parent

So, a logic system using neural nets rather than a search database ala Prolog. This could be exciting stuff if it works well.

comment 11y ago · link · parent

> PROLOG, partly for historical reasons, is quite slow.

This is not an easy statement to make, nor particularly accurate. There are many, many prolog systems available. Perhaps the free prolog compilers out there are not stellar in performance, but commercial production prolog systems are not likely going to be slower than what is proposed here, and yet will still probably be more feature-rich.

comment 11y ago · link · parent

A lot of the ideas expressed here are already available in a couple of the better Clojure development setups (known in Clojure as refactoring tools) -- since it is a lisp, that makes it a good language for implementing this stuff. However, in reality most Clojure devs are not taking advantage of all that this style of editing provides, partly because it requires more than the tool: it requires a different perspective on the code you write to think in this "refactor" way.

comment 11y ago · link · parent

Crazy. As I listened to each example of the sin waves repeatedly, they went from gibberish to perfect sensical English. I think I sensed my neural nets learning the proper outcome from the same inputs. I think I am a machine.

comment 11y ago · link · parent

Have you used DB for your repos where you work on different machines that are not always on, and therefore there is a sync delay occasionally? And then get conflicted syncs on DB's end as a result when you try to interact with the repo before syncing is done across all machines? There are many headaches to just putting a git repo in DB and forgetting about it -- the one possible exception if you are only working on one machine all the time, with zero collaborators.

comment 11y ago · link · parent

It's interesting that with such a huge and diverse, rich set of Clojure repos on Github that everyone depends on and loves, they still didn't even rank enough to be on this list. I'll admit that was a bit surprising at first, but perhaps it shouldn't have been.

comment 11y ago · link · parent

A lot of the spirit you mention and miss seems to be alive and well in the Clojure community. There's a lot of enthusiasm for old-fashioned hacking, improve/extend discussions, just fun times a lot of the time. I don't get that as much when interacting with, say, the JS community, or any other than I can think of. The Clojurescript community in particular is a really experimental bunch, with high energy (and many of their experiments have reached #1 here on HN in recent weeks).

comment 11y ago · link · parent

This puts things into perspective. As a full-time Clojure dev, this graph makes me feel part of a very niche group, for better or worse.

comment 11y ago · link · parent

I don't think you can compare the prompt disruption of American indian tribes by the arrival of Europeans over a very short time, to the thousands of years in which the "Asian immigrants" (as you suggest) became the Native Americans.

comment 11y ago · link · parent

All Americans are from immigrant families, except for the very few left who descended from the beautiful tribal cultures that stretch back thousands of years, and that were promptly expunged by the immigrants. No American should be complaining about modern immigrants, with the sole exception of the Native American peoples, who have the only authority to speak on the matter, yet rarely do. That speaks to the silliness of these immigrant debates.

comment 11y ago · link · parent

Perhaps the most enlightening (and actually useful) purpose of this file is to dramatize the glaring weakness in the c/c++ macro system. A proper macro system would not make it so easy to do this, shall we say, "evil", stuff :)

comment 11y ago · link · parent

Definitely agree, the hints should not get served to the client unless they are requested in the first place. This would obviate much of the "fix" they proposed, and it would seem to me that this would have been the first thought in designing the system anyway.

comment 11y ago · link · parent

I must admit also, I was reading this and wondering how their fix actually "solved" the problem, and even more confused that they thought it was a novel enough solution to actually blog about it. In reality, this blog post reveals further ignorance of the actual issue.

comment 11y ago · link · parent

Article suggests that only Alive and Light Table provide this form of programming interaction. However, many (certainly not all) of the features in this article are a part of the Swift Playgrounds in recent iterations of Xcode, which were probably inspired by this work. Just worth pointing out.

Update: I missed the part further down in the article where the Playgrounds were indeed mentioned. Whoops.

comment 11y ago · link · parent

I find Apple's use of the trackpad for swiping between desktops or between full-screen apps to be much quicker for navigating an environment than the alt-tab or mouse use on Windows. Perhaps Windows has improved to offer similar Apple navigation techniques, but I really like that when I switched to OSX. I also think Time Machine is one of best native OS tools I've ever seen, painless incremental backups with no effort by the user.

comment 11y ago · link · parent

It would probably be fairer not to compare Apple's products today with Apple's products from yesterday, but its products today with other companies' products today. As technology and tech culture and users evolve, so too do the interfaces. Now I have not used a Windows computer in a couple of years, but when I made the switch to OSX, I found it much easier and more instinctive to use. I'd probably say the same about a Windows computer from 2 years ago vs. an Apple computer from 15 years ago, which like in this article, is an unfair comparison.

comment 11y ago · link · parent

It wasn't explicitly mentioned, but I assume they are referring to a percentage of gross income, not net (after taxes) income? 50% of gross is gigantic, which would be a much higher percentage of your take-home pay. I remember as a student in NYC many years ago, some friends would spend about 70% of their take-home pay on rent, which on average would probably be half their gross, give or take. So I guess the numbers make sense, but that is still hard to imagine.

comment 11y ago · link · parent

Machine learning is a broad field of techniques; deep learning is an area of machine learning that I think generally focuses on neural network techniques, and usually rather large networks at that. Machine learning in isolation doesn't necessarily mean neural network techniques are used at all. Nor does deep learning exclusively mean neural networks, but usually "deep networks" are a part of it.
1
106107108109110