freenode/#lisp - IRC Chatlog
Search
13:20:44
phoe_
Or should I use #.(format nil "something that uses ~#\Newline to create non-broken strings") ?
15:44:46
whoman
hehe! i dont know about ubuntu bash, but i had emacs and xming and windows 8.1 working quite well together on my tablet. fwiw
16:54:04
dim
http://mobaxterm.mobatek.net might be helpful too for windows users wanted linux apps and an X server
17:13:21
nachoba
It's not emulation it's just a windows terminal with SSH support and an integrated X Server....
17:15:12
nachoba
Because stumpwm will be in the guest machine and not in the Win machine....that's the way the X Server works
17:29:06
whoman
stumpwm is really great, being CL and swankable and such, but it was still a layer much too far from what i was mostly doing
17:29:37
whoman
exwm is a bit of magic to me. it keeps X11 frames in the emacs windows perfectly. so that, "x11 apps" are just emacs buffers.
17:29:39
Josh_2
I've tried StumpWM but never got along with it, I'm not a fan of the keybindings and didn't particularly care enough to modify it all.
17:30:18
whoman
i started to get custom with stump, but it would have been too much effort to be something too unique and mutated from the norm - i dont want to exile myself =)
17:30:54
whoman
exwm is basically perfect. install from melpa, set up xinit/lgdm/xsession, then trust in emacs.
17:51:56
Fare
When I change screen orientation, the current window becomes in a weird state, no longer displayed but still current.
17:56:48
Josh_2
Trying to explain why you don't like C++ to someone who programs in C++ for a living is hard
17:59:02
stylewarning
They might tell you that they have exquisite control over memory layout and memory copying operations, and that that Lisp junk gives you none of that
17:59:08
whoman
same way you tell your friend that you arent interested in his girlfriend but she keeps eyeing you
18:11:13
Josh_2
stylewarning: someone made a reference to something similar, my response was that most languages do it for you.
18:11:49
stylewarning
The property of “giving you control” isn’t something that can be done “for you”
18:13:07
stylewarning
The real answer is “some languages don’t allow you to peek at that level of abstraction, namely the representation and placement of objects in memory”
18:16:39
whoman
lol, thanks stylewarning ! your last two sentences, very appropriate for another current conversation about english-type contextual human language. thank you
21:04:32
phoe_
gah, I wish I knew enough double backquote to zip this up http://paste.lisp.org/display/356775
21:05:11
phoe_
in a similar way https://github.com/keithj/alexandria/blob/master/lists.lisp#L29 is done
21:54:44
stylewarning
I didn’t have good advice for folks who asked me except “it’s probably possible to figure out LDB or GDB but idk”
22:16:55
jasom
ACTION refactored out some code into a different package, but neglected to export one symbol
22:18:33
phoe_
So a function doesn't make it for me since the symbol will get evaluated and I lose the name.
22:19:12
jasom
easist way to ensure a list is no more than N elements? (e.g. (first-n 3 '(a b)) => (a b) (first-n 3 '(a b c d)) => (a b c))
22:19:19
phoe_
minion: memo for Xach: http://paste.lisp.org/display/356788 <- What do you think of this? It's surprisingly small.
22:19:55
phoe_
https://github.com/death/gnusdumps/blob/5ad0fda58cc830709179b50347144a1da854d02a/driver/main.lisp#L92
22:22:39
Bike
no other function does anything like that, you should be able to work it out from a backtrace
22:29:15
stylewarning
My argument is that if you’re printing the code outside of its native home the loops are full of prefixed symbol garbage
22:30:28
stylewarning
MY-PACKAGE::FOR MY-PACKAGE::I MY-PACKAGE:FROM (one colon because FROM is a function I’ve exported) 1 MY-PACKAGE::TO 10
22:48:19
PuercoPop
I do to, as well when package designators are not un-interned symbols. But it I tell myself it is my OCD kicking in
22:56:34
aeth
PuercoPop: All CL has is the Google Style Guide (formerly from ITA Software) and a bunch of slides from (iirc) Norvig and the general guide to "just use the default formatting Emacs gives you" (even the Google Style Guide says something like this)
23:17:29
jmercouris
I need to do some logic before I can populate the slots of my class, how can I make a "constructor"?
23:22:42
PuercoPop
aeth: Speaking of Norvig's style guide, another pet peeve is when people don't use upper case for format directives
23:24:45
aeth
jmercouris: Two ways, iirc. initialize-instance and defining your own make-foo that returns the result of a (make-instance 'foo) with everything setup
23:27:23
PuercoPop
onecould also defer initialization until first use with an around method on the accessor
23:29:30
aeth
jmercouris: I prefer make-foo because it abstracts more (e.g. it doesn't have to be a CLOS object, it could be an array or something), but I think defining an initialize-instance is more common. You could probably provide both, too.
23:30:08
aeth
PCL uses the latter. http://www.gigamonkeys.com/book/object-reorientation-classes.html
23:32:36
aeth
If you do both, make-foo would just return (make-instance 'foo) with the optional keyword arguments passed to the constructor and could probably be inlined with no issues.
23:33:13
jmercouris
basically I am making constructors for major mode objects, so I don't want to make it too hard for emacs users to figure out