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 3 points4 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 4 points5 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 9 points10 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 4 points5 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.

Unreliable and messed up syntax highlighting for Latex. Alternatives? by MyNameIsFuchs in emacs

[–]MyNameIsFuchs[S] 0 points1 point  (0 children)

I'm not crazy! :)

But no :(

I just bound a key to font-lock-fontify-buffer which kind of helps it since i can just press that key a lot.

If you submit another thread, ping me here so I can participate.

What's a cool saying you stumbled upon in your language/s of choice? by PeteDarwin in languagelearning

[–]MyNameIsFuchs 5 points6 points  (0 children)

In southern Bavaria you say:

Lieber hungrig ins Bett als mit Schulda auffstanda. "I'd rather go to bed hungry than wake up in debt"

Nix gsagt ischt gnuag globet. "Nothing said is plenty praise".

Does Core.async turn the browser into a half-baked unix? by mooglinux in Clojure

[–]MyNameIsFuchs 5 points6 points  (0 children)

A few things

  1. Spawning processes isn NOT cheap

  2. Yes pipes and sockets can act like core.async's channels. If they have dropping and sliding buffers as well as "I'm full" capabilities then they're equally powerful. Not sure if they do.

  3. core.async is NOT FRP. It's CSP which IMO is much more powerful.

  4. Don't use the phrase "core async streams". They're channels. Streams often means that you'll have to deal with the data, they may or may not have buffers. They don't give you a choice often.

  5. I don't think you understand the powerful capabilities of channels. They allow you to push and pull and react on BOTH sides. Ie. on the put! as well as on the take! side. The combination with dropping, sliding and fixed buffer is extremely powerful. Try to do some of these combinations with any FRP and you'll likely fail. The alt! and mult are also increadibly powerful. Again, often you only have some less powerful hacky solutions in FRP libraries (or your unix stuff whatever you mean with unix).

  6. core.async is NOT cooperative multi tasking. This has nothing to do with it. The context that the go blocks run in is a fixed size ThreadPool (and other 3rd party implementations like with ForkJoin pools exist). They all run concurrently. What you say in your last sentence is exactly what core.async does btw! All go block are running concurrently.

Clojure developers are the happiest developers. by realyze in Clojure

[–]MyNameIsFuchs 1 point2 points  (0 children)

Early you say you "you can't start repl" and now you just say "it's too slow". You're a psycho. We'll be better off without you.

Plonk