freenode/#lisp - IRC Chatlog
Search
18:49:11
clicat
Josh_2: what's the keyword argument to go be dropped in the REPL instead of exiting? I'm following the code of the cookbook but I'm not dropped in the REPL, the executable runs and exits.
19:06:41
mfiano
and the author doesn't have time to make the needed server changes to get it to update
19:07:08
clicat
Josh_2: I do use that... Otherwise I have the same code as before. I'm following exactly the build target given at the end of the "With SBCL" section. Maybe I should do something like in the "For web apps" section? I don't understand why we have to find the web server thread...
19:07:55
mfiano
It was auto-generated, but there were changes in Quicklisp or something that required a decent portion to be rewritten or something.
19:08:50
mfiano
But it was pretty bad anyway, since it did not recognize #'(setf documentation) and just parsed strings
19:12:18
Josh_2
clicat: also yes that was the wrong argument, in my setup function I have (sb-impl::toplevel-init) as the last function call
19:15:41
clicat
Josh_2: in the "For web apps" section, the cookbook says "We have one thing to take care of, it is to find and put the thread of the running web server on the foreground."
19:33:48
phoe
if I understand the CSGO popularity-by-country trends correctly, then you can find such doctors in Russia, where, by definition, everything is possible
19:55:26
iarebatman
hhdave: I actually read your reddit post the other day - I didn't realize you hung out in here. Do you know if your company would be willing to hire a remote employee from the U.S. ?
19:58:05
wayneeseguin
Does anyone know of an excellent tutorial of getting started with emacs + sly + sbcl? I've been a vim user for ::cough:: a long time and want to learn the full "immersive" experience for CL
20:05:18
iarebatman
wayneeseguin: I mean it's not "perfect" exactly, but I've been using it for more and more as I work more things into my workflow(s). I use the hell out of Org mode for working on my book, creating presentations, and giving common lisp demos for work that I can run via Org Mode Source Blocks.. The "spreadsheet" capabilities are very cool, and I even got column/cell formulas to invoke CL functions.. but I haven't had much use
20:07:07
iarebatman
I use it for my sql server work, I use it for time tracking/TODOs/etc.., and I use TRAMP to update my gemini site hosted on a remote VM.
20:08:38
iarebatman
all in all - very powerful. coming from vim originally, it takes some mind-bending.. but being able to do all of that from one place feels very gratifying..
20:09:43
iarebatman
wayneeseguin: by the way - if you go with spacemacs, you may have better luck with their develop branch than their latest release.
20:14:19
fiddlerwoaroof
evil-mode is nearly good enough by itself, and spacemacs always felt too heavyweight
20:16:49
iarebatman
I definitely agree with spacemacs feeling heavy. haven't figured out the best way to deal with that yet besides delving deep into configuration-hell.. just not ready for that yet =)
20:18:04
iarebatman
I ended up with the common approach of running emacs as a daemon in the background at all times, that way when I open 'emacsclient' - it's much quicker.
20:23:30
wayneeseguin
iarebatman: Yeah, I have vim movement ingrained in my "finger-memory" and don't think before slicing up text so the 'mind bending' is steep for me :D
20:24:50
iarebatman
quite a bit.. I'm not sure why they don't cut more frequent releases.. maybe they are trying to reach a certain milestone or something
20:30:35
iarebatman
fiddlerwoaroof: Yeah.. my biggest hold-up was not knowing what things were called in emacs.. like I had no idea what helm or ivy was.. so I wanted to use something like spacemacs for a while first to figure out what I liked and didn't like before I decided to dive in and make a more minimal package selection/config for myself
20:34:09
wayneeseguin
I have a similar question, my understanding was sly was forked and maintained?
20:36:48
Josh_2
I do not know which one is "better" but I personally use sly because I like the features
20:46:41
Xach
I tried to use sly but had a hard time adapting my slime key muscle memory. I'm going to give it another shot.
20:48:57
Xach
I think sly is probably better, with nicer features and design. But changing old habits is difficult.
21:00:50
mfiano
You often times don't want to just inspect some object located deep inside some internal game state that is otherwise unreachable from the APIs, but to also perform arbitrary operations on it in the REPL. Ray casting an sending back the object denotes by the geometry that the ray intersects with is a useful way to do this easily.
22:19:32
lotuseater
how can I use special versions of arithmetic operators eg in (defun square (n) (* n n)) for integers. a DISASSEMBLE shows her GENERIC-*
22:20:44
lonjil
The compiler needs to somehow know that that function is only going to get data of a certain type.
22:24:25
lonjil
lotuseater: yes, and CHECK-TYPE should work in a lot of cases. This is all very implementation-specific though, so I can't give much general advice.
22:28:01
lonjil
Runtime. It will check a type and if it doesn't match it will error. This means that anything after the CHECK-TYPE, must have that type. So it isn't like when you do (declare (type ..)), where you promise that a variable will have a value of a certain type, which is technically speaking undefined behaviour if you violate the promise. In practice most CL compilers will insert type checks unless you do (safety 0), though.
22:44:07
nij
Hello! I'm using sbcl and quicklisp, and have successfully loaded a package called `cl-permutation`.
22:44:57
nij
But the package has a long name.. is there anyway that I can get rid of that need, and type instead
22:49:07
no-defun-allowed
You probably shouldn't use IN-PACKAGE, lest you define some function or variable and clobber CL-PERMUTATION somehow.
22:51:02
lotuseater
yes of course you're right no-defun-allowed :) but in the REPL for experimenting it would be enough for first
22:55:54
Alfr
nij, there's also package-local-nicknames (in some implementations), if you only want a shorter name for it.
22:57:25
White_Flame
nij: if you're in CL-USER and doing things interactively, (use-package :cl-permutation) and that will make all the exported symbols from that visible in your current package.
22:58:14
White_Flame
if you're writing code "for real" in files, then yeah you want your own defpackage which can import, use, or local-nickname the package as a proper dependency
22:59:04
White_Flame
modern style really does promote using the package:symbol naming to avoid collisions, and the nicknames allow making it very short, say (perm:foo ...) if you want
22:59:45
White_Flame
but :use (which would allow you to just simply call (foo ...) from that used package) is still common
1:55:07
sukaeto
re: the "switching from vim to Emacs" - I switched to Emacs ~5 years ago after using vim for ~15 years. I just started with vanilla Emacs, installed evil, evil-org, and evil-collections. That was enough to get started, IME
1:57:21
sukaeto
I also feel as though Doom's attempts to make configuring Emacs easier rather make it more difficult
1:59:10
moon-child
it seems to me that doom was an attempt to construct a traditional IDE using emacs as a base. Emacs is no less capable of being an ide than anything else, but it somewhat misses the point of emacs; and if you're not going to spend the time to make emacs what you want, then there's not much point in such a tool
2:02:03
astronavt
the main thing i never liked about emacs is how the underlying functions were somewhat "hard coded", whereas in vim the convention is to have an "operator" that operates on a chunk of text and a subsequent "motion" that selects the text to be operated on
2:04:14
astronavt
as for lisp support specifically, ive recently started using Vlime and its pretty decent
2:05:02
astronavt
the vim plugin side of things is pretty conventional vim, and it comes with its own bundled swank server which i think is nice
2:17:56
astronavt
is it considered bad form to post my lisp question on stackoverflow in this channel?
2:18:11
astronavt
not sure how much overlap there is between "people who read the [lisp] tag on SO and people who read #lisp on freenode"
2:29:14
save-lisp-or-die
Are there any guix users here who might shed some light on why cffi can't find lisdl2 via (ql:quickload :sdl2) ? In other distros cffi looks in a sane spot, but that spot doesn't seem to be sane by guix's standards.
2:33:34
lotuseater
I look with fuzzy-find where the .so files are and push the path to cffi:*foreign-library-directories"
2:36:20
save-lisp-or-die
yeah I tried to cd into /gnu/store/...../profile/lib/ and running sbcl from that directory (cffi looks in the directory where sbcl is started), but that didn't seem to work either. It could have picked the wrong guix profile though. I'll keep at it. Your advice is more or less what I thought I'd have to resort to, but I wondered if there was some
2:37:38
lotuseater
edit your .sbclrc with (pushnew #p"/gnu/store/rest/of/your/path" cffi:*foreign-library-directories*)
2:39:11
save-lisp-or-die
I'll give it a shot. I have a feeling that the guix profile I'm using has to match the guix profile where the shared libraries are. I might have to write a script to update the .sbclrc whenever I change profiles.
3:00:43
sukaeto
astronavt: that's the thing about evil-mode - it brings vi (the language - what you described as operators and motions) to Emacs