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

Singapore definitely has some of the worst driving standards of any major city I've lived in around the world, so if you can stand up against them with a self-driving car, that is definitely promising.

comment 10y ago · link · parent

That confirms that at least in 2009 they were using Racket.

comment 10y ago · link · parent

+1 .. However OCaml does have a superb module system that is lacking in Haskell. Not sure about F#.

comment 10y ago · link · parent

This is quite a nice write-up, thank you. Regarding this point:

>because what we'd really like is a way to specify that the type of `foo` depends on the result of `p?`

Is this situation not resolved by allowing p? to not be a bool necessarily but also a sum type that informs foo which case of a different sum type to return?

Anyway, I like your footnote [1] which, for me, is what allows a typed program to actually be more expressive, in the sense that you can literally express the types in your head as you code, which is difficult or simply not provided in a dynamic language, despite that most developers will be "thinking in types" regardless of typing of the language.

Now, "expressive" also often means "elegant" because you can express an idea easily with less verbosity in a dynamic language.

A language with type inference is an interesting medium that sort of removes the expressivity of explicit type annotations while gaining the expressivity of a dynamic language in some respects.

comment 10y ago · link · parent

Good luck.

comment 10y ago · link · parent

> By learning PureScript I transfer the same skillset to the backend

do you mean "frontend" ?

comment 10y ago · link · parent

You can do any kind of project with Haskell; I suspect you aren't looking very hard.

Here are some interesting starting points:

https://wiki.haskell.org/Game_Development#Videos

comment 10y ago · link · parent

I'm trying to find the video tutorials you mention, where are they?

comment 10y ago · link · parent

My understanding is that they are currently using Racket, but I don't work there. This is often mentioned in the Racket community, I think one of the ND engineers spoke at a lisp conference recently about it.

comment 10y ago · link · parent

And also infinite good options.

comment 10y ago · link · parent

I'm sorry to hear that.

comment 10y ago · link · parent

Only to a limited degree. Swift is not a functional language, though it has some things that are sorta functional. The Haskell paradigm does not translate to an eager, non-GC language like Swift easily.

comment 10y ago · link · parent

Agreed. I thought this was a Qt project.

2324.

Men Like to Mansplain Themselves, Study Finds(motto.time.com ↗)

1 points · by jb1991 · 10y ago · 1 comment

comment 10y ago · link · parent

Don't forget Apple's new flagship language, Swift.

comment 10y ago · link · parent

> because there are benefits to both approaches and there will always be people preferring one or another

And that is exactly my point: people prefer one or the other because it is not a solved problem, there is no universally accepted way.

comment 10y ago · link · parent

Strange comment. That's like saying "never use C++ because then you'll hate going back to C" or "never use an automobile because then you'll hate riding horses."

comment 10y ago · link · parent

Eh. I vastly prefer Liszt's melodies and harmonic transitions. Alkan's music is just like listening to scales.

comment 10y ago · link · parent

The scheme they have been using was PLT Scheme, which was renamed Racket.

comment 10y ago · link · parent

The tide is turning. Naughty Dog video game company (Uncharted, Crash Bandicoot, Jak and Daxter) uses Racket as its scripting language now.

comment 10y ago · link · parent

> many of the really interesting language features within Clojure are built upon macros

That's true with any lisp. But that doesn't mean the the ability to write macros is a requirement for most development work on a daily basis, and homoiconicity is often touted as amazing specifically because of its help in writing macros. Therefore, since writing macros is not super common or necessary most of the time, I would say that "code as data" is also not a big deal most of the time.

I really like lisp, I just don't think some of its unique features are as big a deal as they advertise.

comment 10y ago · link · parent

This is the first I've heard of Shen, so I can't say.

However the Racket engineers, particularly Matthias Felleisen, are doing cutting-edge research into types. Typing is not a solved problem, because if it was, there wouldn't be a static vs dynamic type debate that lingers ad nauseum.

Racket is in an interesting sweet spot for typing research because it is a traditional lisp with dynamic types, to which gradual typing that works both in typed and untyped land has been introduced and continues to undergo extensive attention.

comment 10y ago · link · parent

I use emacs with vim emulation (evil mode) and am addicted to it, partly because I can bind vim's leader key with emacs lisp functions that can be quite complex, to do great things with a single key press while editing.

comment 10y ago · link · parent

I personally think the "code as data" concept is not so important in lisp. It is critical to writing macros, but you often don't write macros and beginners to lisp often abuse macros.

I've written Clojure professionally now for a couple years and am pretty fast and proficient at it, but when I write a function call, I don't think of it as a list, even though that is what it is. I don't think any lisper does. It's just a function with arguments and I'm writing in the syntax necessary, which happens to be a list.

In those rare occasions where I think a macro is necessary, sure, it helps that a function call is a list, but that's hardly the main role in a day's work.

comment 10y ago · link · parent

I think that more specifically, "Learning FP makes you a better programmer", and you often learn FP when learning lisp, so the original statement is often true as well.

comment 10y ago · link · parent

> For UI application programming You can do without FP language features.

Wow, do I ever disagree with you on this. The absolute best UI development process I've ever had -- super easy, fun, fast, painless -- was using Clojurescript's Om, which is functional to the core. Doing anything else, like going back to the polished UI API's of Apple still feels arcane by comparison.

comment 10y ago · link · parent

Your comment is almost accurate when referring to Haskell programmers who have not used the language for very long.

comment 10y ago · link · parent

I'm of the opinion that there is only one lisp right now with some serious potential to dominate in the future, and that is Racket. Why? For one very simple reason: unlike all other lisps, there is serious, ongoing, and lengthy research into correctly bringing a static type-checking process to the language. Clojure's core.typed doesn't count here, as it is full of significant holes that invalidate its entire point -- though, those holes are very possibly getting filled in the coming years as they attempt to refactor core.typed following the Racket model. But the Racket team is doing something with lisp that is true to its core, not just with types, but with many other features as well.

Interesting piece of trivia: this website you are reading right now is built on top of Racket.

comment 10y ago · link · parent

It wouldn't necessary be much different if using C++11. Maybe using unique_ptr instead of new, etc.

It certainly _could_ be a lot different, using a more functional approach, but it likely wouldn't be, and would remain a basic OO program dressed in new syntax.

2340.

Careful Massacre of the Bourgeoisie(indiewire.com ↗)

1 points · by hellofunk · 10y ago · discuss

1
777879
110