Fork me on GitHub
#klipse
<
2016-11-06
>
Yehonathan Sharvit05:11:55

well done @jrheard your article got very good feedback on HN and Reddit

jrheard15:11:02

thanks! just realized i ended up on HN somehow, i was out with friends last night and was wondering why random people kept following me on twitter 😄

jrheard15:11:38

i love this bit of feedback from the reddit comments:

Ha, that was fun~!
Also those live blocks are boss.

Yehonathan Sharvit15:11:40

I’ve deployed the infinite loop protection

jrheard15:11:45

oh awesome!

Yehonathan Sharvit15:11:52

You can test it in KLIPSE repl

Yehonathan Sharvit15:11:33

I added a flag to display the guard in the transpiled js

Yehonathan Sharvit15:11:47

by default, guard doesn’t appear

jrheard15:11:52

(defn foo []
  (while true))

(foo)
works like a charm

jrheard15:11:24

i like the default of 3 seconds, too, i think that makes sense

jrheard15:11:53

i noticed in the HN thread that someone put together an alternate version of the post’s code - https://gist.github.com/Haspaker/74f124859633edeb8d04465ce0053225 - that takes a while to run if you paste it into klipse

jrheard15:11:21

so it looks like people are actually using these klipse windows to mess around and come up with stuff, which is awesome!

jrheard15:11:41

i was worried that people would read the lines like “go ahead, try setting that foo to a bar” and just skip right over them without trying it

jrheard15:11:55

and here we’ve got this guy putting together an alternate version of the algorithm right there in the klipse window!

Yehonathan Sharvit15:11:06

I’m wondering why this code doesn’t cause an inf. loop

Yehonathan Sharvit15:11:08

because, you are using your own version of klipse and not the one from the cloud

jrheard15:11:32

ah yeah, yup - out of habit, i prefer hosting my site’s css/js/etc myself, that way i don’t have to reason about a third party’s uptime/speed/etc

jrheard15:11:21

plus i can control when i upgrade, etc 😄

Yehonathan Sharvit15:11:49

Yeah that makes sense

jrheard15:11:13

i’ll definitely upgrade before the next post, though!

jrheard15:11:41

it’s basically done, but i’m going to hold off posting it for a couple of weeks due to real-life stuff, and also i want to do a few assorted housekeeping things to the blog’s code/setup first

Yehonathan Sharvit15:11:03

you might want to configure the max-eval-duration

jrheard15:11:32

oh nice, will do

Yehonathan Sharvit15:11:31

Thx for mentioning how much you enjoy klipse metal