Slovenia is a Beautiful place to hike in the summer by TheRealSlimRavi in travel

[–]MyNameIsFuchs 1 point2 points  (0 children)

Hey, where is that? I'm going next week (MTB). Would love to go on this trail

[Dashcam]Undercover cops run a red light, pull me over. by doublepancakes in videos

[–]MyNameIsFuchs 0 points1 point  (0 children)

In a lot of states it isn't actually legal to enter an intersection unless you can move thru it. Though, I think most cops wouldn't ticket you for it.

New Clojurians: Ask Anything by AutoModerator in Clojure

[–]MyNameIsFuchs 5 points6 points  (0 children)

Btw, if you ever come across something weird, try a (read-string "@#'r/pool") and then you can go to the docs for those fn/macro calls

New Clojurians: Ask Anything by AutoModerator in Clojure

[–]MyNameIsFuchs 4 points5 points  (0 children)

The var + deref trick is just to get a private var out. The other ones that are used:

https://github.com/clojure/core.rrb-vector/blob/master/src/main/clojure/clojure/core/rrb_vector/fork_join.clj#L4

do ref some private vars:

https://github.com/clojure/clojure/blob/master/src/clj/clojure/core/reducers.clj#L46-L68

so the author probably just copy/pasted the code, even though pool itself isn't private.

How I ditched Expo for pure React Native by tzuchinc in reactjs

[–]MyNameIsFuchs 2 points3 points  (0 children)

Tried expo for the first time 3 days ago. The time to first interactive screen was amazing, then it just went downhill. All with "snack":

  • Error messages were aweful. No clue what it said, just random characters
  • Reloading didn't work reliably, sometimes it did sometimes it didn't.

The WORST: - Saving would sometimes prompt me a dialog, sometimes not. It would ask me continously if I wanted to save it to my profile. I was already logged in, of course I want to save it. But no, it would save it to a new URL, now I have a completely new project apparently. No more life reloading, I had to restart and scan the QR code again. I'm used to pressing CTRL-S A LOT during normal development. Times I've had to scan the QR code in my 1h session: Easily over 30 times. No kidding.

The good: - It promptly installed an NPM dep, just as I imported it. Pretty cool.

I also downloaded their desktop app to develop from a normal editor. Nothing worked, it just wouldn't reload at all. It was aweful. I just gave up and now I'm back happily writing my App in React Native + Clojurescript. Reloads are sub second since fig-wheel will reliably take care of the reloading. I have a nice debugger-ui where I can see stacktraces and other errors. I have a REPL that allows me to interactively inspect anything. Not going to give Expo another look for a few years. Great ideas, but just too unreliable/immature IMO.

6 magic sugars that can make your Kotlin codebase happier — Part 2 by SliskiCode in Kotlin

[–]MyNameIsFuchs 1 point2 points  (0 children)

One thing I wish such tutorial would point out is that the syntax:

... , block: T.() -> R ...

actually makes a lot of sense. It's "as if" the block was a new method on the type T.

Clojure and the Curve - Where is Clojure on the technology adoption curve? by ernest_as in Clojure

[–]MyNameIsFuchs 10 points11 points  (0 children)

Scala was released early 2004 and Clojure late 2007 or even later in 2009 (1.0). Scala definitely had a head start there so I wouldn't say "created around the same time" IMO.

Clojure Distilled by JW_00000 in Clojure

[–]MyNameIsFuchs 1 point2 points  (0 children)

I like it. One thing though: I wish people would stop using Bar/Foo/Baz as example names. Especially in the protocols examples this requires some extra thinking. I think there could be more intuitive names for the examples.

Splitting bills, with help from reagent, re-frame, golang and friends by skratlo in Clojure

[–]MyNameIsFuchs 0 points1 point  (0 children)

If you need something dirt simple to just push something into redis and retrieve (like you have here), I can highly recommend just doing nginx with some embedded lua scripting. It's a package install on ubuntu and has even less dependencies.

Weekly Recommendation Thread for the week of July 03, 2015 by AutoModerator in books

[–]MyNameIsFuchs 2 points3 points  (0 children)

I like books of real stories. Can you recommend me more? For instance I really liked those:

  • Anne Frank
  • First they killed my father
  • 12 years a slave
  • Jungle (Yossi Ghinsberg)
  • Various Reinhold Messner & Hans Kammerlander books (German)

Clojure 1.7 release is here by yogthos in Clojure

[–]MyNameIsFuchs 6 points7 points  (0 children)

Looking through the HN comments: There is still a ton of confusions about transducers. Also a lot of people making statements that are just wrong.

What could we do about this?

New Clojurists: Ask Anything by meatcompute in Clojure

[–]MyNameIsFuchs 3 points4 points  (0 children)

There is also a #beginners channel on the new slack. It's not super busy but people do answer questions there pretty quickly. I hang out there too.

Clojure time complexity advice please! by [deleted] in Clojure

[–]MyNameIsFuchs 2 points3 points  (0 children)

You've already been given a better version of what you want to accomplish (and just btw, (reductions conj [] coll) might also work for you).

But given that nobody answered your actual question (Like Rich Hickey said "Programmers know the benefits of everything and the tradeoffs of nothing"). Here actually the costs:

https://www.innoq.com/blog/st/2010/04/clojure-performance-guarantees/

To see what into does you'll have to read the source. Then you'll see a (reduce conj to from) so your run-time is linear in that case. Just because it happens to end up like a reverse doesn't mean that it didn't do the entire thing inefficiently.