Better HN
topnewbestaskshowjobs
Log inSign up

phyrex

904 karma · joined May 2, 2012 (14y ago) · 392 submissions

Submissions

comment 6y ago · link · parent

That is not the conclusion at all. Literally the conclusion:

> It’s nice to have another scripting tool in my toolbox: Babashka. Time will tell if I start using Clojure instead of Python as my preferred scripting language, thanks to Babashka. At least in this exercise Babashka did really well.

comment 6y ago · link · parent

I’ve used this in production:

  def thread_first(current_value, args):
    for funcargs in args:
        if isinstance(funcargs, list):
            func, *restargs = funcargs
        else:
            func = funcargs
            restargs = []
        current_value = func(current_value, *restargs)

        if current_value is None:
            break
    return current_value

It’s modelled after clojure’s ‘->’. Your example would be

  thread_first(123, [add10, str, print])

comment 6y ago · link · parent

You're discovering REPL-based development ;)

comment 6y ago · link · parent

Care to explain why? There's riots in the streets because of police brutality, browser history can now be requested by law enforcement without a warrant, .. i mean OP has a point?

comment 6y ago · link · parent

Speak for yourself, I used vim for a decade and have since switched full-time to spacemacs in mixed mode! :)

comment 6y ago · link · parent

The way you use them and how you model the world with them seems very similar to me

comment 6y ago · link · parent

iPhone finger print data isn't sent anywhere; it stays on the phone

comment 6y ago · link · parent

The exact same way as with every other vaccine from any other country.

comment 6y ago · link · parent

Well that's certainly well deserved!

comment 6y ago · link · parent

You may also enjoy Clojure's core.clj: https://github.com/clojure/clojure/blob/master/src/clj/cloju...

comment 6y ago · link · parent

I'm on the side of lisp here, but in OOP you'd usually write something like

    val.firstFn().secondFn()

comment 6y ago · link · parent

I mean that’s basically the JVM, isn’t it?

comment 6y ago · link · parent

I’m nearsighted and feel offended by “see sharp”! /s

comment 6y ago · link · parent

Clojure? The java ecosystem is the only thing that rivals the python one, and Clojure integrates very well.

comment 6y ago · link · parent

No I don't think so. It definitely popped up before I pressed anything for me.

comment 6y ago · link · parent

Not on my iPhone you haven’t

comment 7y ago · link · parent

"Designing Data-Intensive Applications" by Martin Kleppmann touches on this subject: http://dataintensive.net

comment 7y ago · link · parent

You can make an argument for something, without demeaning something else

comment 7y ago · link · parent

*datascript

comment 7y ago · link · parent

Or it is actually the noise. For some people that is really how it is - I am one one of them

comment 7y ago · link · parent

pretty sure he meant datalog indexes, not datomic

comment 7y ago · link · parent

Clojure seems to do pretty well in that regard

comment 7y ago · link · parent

The screen is the component that uses up the most energy though. By having a smaller screen, you can get by with a smaller battery.

comment 7y ago · link · parent

There are many reasons why people are vegetarian. Environmental, spiritual, ethical, health, digestion issues, etc. So it very much depends on the reason, and on the specifics. Speaking for myself, I'm an ethical vegan and I would probably eat lab-grown meat.

comment 7y ago · link · parent

I don't want another social network or collaboration platform, I just wants something that synchronizes files across machines :/

comment 7y ago · link · parent

Could you explain why you like this better than a traditional multi monitor layout? And how wouldit compare to vertical monitors horizontally next to each other?

comment 7y ago · link · parent

It’s president Xi, my friend, the Chinese put the family name first and American media usually sticks with “Xi Jinping”.

comment 7y ago · link · parent

Good god I need to buy you a beer, those were incredible. Let me know if you ever get to Toronto!

comment 7y ago · link · parent

I’m in Beijing right now and it’s nowhere as bad as you describe (which is how it was ten years ago). Electric cars and scooters are everywhere. China really seems to be trying to get their environmental shit together, it’s just a big project that takes time
1
1011121314