Fork me on GitHub
#clojure
<
2016-11-19
>
seancorfield03:11:45

CIDER is pretty awesome!

fellshard03:11:58

My work laptop is basically unusable with emacs, sadly. Lenovo did something super funky and the only 'ctrl' recognized by applications is the right control key; the only 'alt' is the left, with the right alt apparently permanently stuck as AltGr. 😞

fellshard03:11:22

So any emacs chord is super lousy to execute

hwk03:11:47

@fellshard : please tell us the full model #, so we know to never buy that model

hwk03:11:59

I thought MacBook Pro removing escape key was bad, but this is next level evil.

fellshard03:11:57

Lenovo W541, they have a habit of 'playing' with their layouts. The navigation buttons are all shuffled, too, approaching 'dev-hostile' levels. (page up/down, home/end)

fellshard03:11:42

Couldn't find any BIOS configuration to change it like you can for the 'Fn/Ctrl' swap.

hwk04:11:05

@fellshard: is this fixable via xmodmap (I guess the ctrl/alt issue is not if they happen to map to the same hardware code)

fellshard04:11:36

iirc I tried tinkering around with the AHK Colemak mapping I use, but couldn't get it to budge that way. Haven't tried much else yet.

hwk04:11:54

are you running Linux or Windows ?

hwk04:11:19

can't help you with that 😞

hwk04:11:56

if you do ever switch to Linux, basically all problems, except for "these two distinct keys give same code" is solvable via xmodmap, with sufficient man page reading

fellshard04:11:11

I'd hope so at that point, hah.

hwk04:11:40

There's also the highly expensive https://www.kinesis-ergo.com/ -- but I've found it to be amazing for emacs/cider/clojure, since Ctrl/Alt can be hit with thumb

hwk04:11:57

including both with the same thumb, without twisgint the hand, so things like M-C-x are easy to hit

hwk04:11:16

this is after a slight reconfig of Thumb Delete = Ctrl, Thumb End = Alt

fellshard04:11:18

Hmm, you raise a good question, I don't recall if the problem existed with an external keyboard

hwk04:11:01

It can't screw up with external keyboard UNLESS the motherbaord is like: well, this external keybaord has different keycodes for Alt/Ctrl -- just for giggles, let's mix them to same key.

hwk04:11:19

They would actively have to have extra circuitry just to screw this up.

fellshard04:11:53

It does still happen with external keyboard 😉

fellshard04:11:42

(let's scoot this off of #clojure)

hwk05:11:05

inspired by https://www.youtube.com/watch?v=BCXsxnnXZBo&amp;list=PLhi8pL3xn1OQW8Ha2kfDQX9zkMeMxqTOs I implemented a mini forth in clojure Alan Perlis talks about langauges that changes the way you think. In terms of forth, can all the benefits of forth be repeated in clojure simply with (def ^:dynamic stack) ? It seems like much of the power of forth comes from the implicit stack -- and I can get all of this with just a stack -- and yet retain all the power of clojure in the implementation of individual words.

etherfuse06:11:41

anyone know the proper way to declare a java type String[][] in the gen-class :method?

etherfuse06:11:09

[setRows [String[][]] Builder]

etherfuse06:11:14

throws error

etherfuse06:11:28

nm “[[Ljava.lang.String;” does the trick

roelofw07:11:37

@seancorfield thanks, I will try to find it

bfabry07:11:27

@etherfuse the class function is useful for figuring those hints:

user=> (class (to-array-2d []))
[[Ljava.lang.Object;

borkdude15:11:27

Is there something like #(- 0 %) in Clojure?

luxbock15:11:58

@borkdude: wouldn't that just be -?

roelofw16:11:42

@seancorfield thanks, I could not find it

hwk20:11:02

https://www.youtube.com/watch?v=FihU5JxmnBg <-- amazing talk on debugging Clojure, especially the partial-join example of "inside out eval at the repl" -- are there other cool "debugging clojure" talks -- my clojurre bugs that I find most infuriating are the ones that a static type checker would ahve caught -- and I need to build better intuition for catching these