libertyprime has quit [Remote host closed the connection]
dddddd has quit [Ping timeout: 260 seconds]
clothespin_ has quit [Quit: Leaving]
ahungry` has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
mono has joined #lisp
<rumbler31>
no reason you can't start now. 50 free problems
cmatei has quit [Remote host closed the connection]
monokrom has quit [Ping timeout: 258 seconds]
<rumbler31>
I'm stuck on day 3 part 2. I know how to get the answer but apparently I don't know how to code for the answer
ahungry has joined #lisp
johnjay has quit [Ping timeout: 265 seconds]
mhcat has joined #lisp
efm has joined #lisp
ssd532`` has joined #lisp
montxero has joined #lisp
<montxero>
What are some of the things necessary to write a plotting library from scratch
ssd532` has quit [Ping timeout: 265 seconds]
<rumbler31>
at the risk of sounding dumb, nothing?
<LdBeth>
rumbler31: it’s fairly easy compute the distance to all different intersection points as a brutal force method
<LdBeth>
Since the graph isn’t cyclic
<no-defun-allowed>
You need to draw some lines on some kind of output that looks like a graph, and some linear equations.
efm has quit [Ping timeout: 258 seconds]
<no-defun-allowed>
montxero: Do you mean something like gnuplot where you give it some points and it draws a graph of some sort?
<rumbler31>
LdBeth: I know. I have discovered each crossing coordinate, and I have arrays of the coordinates of each line, and I can get the positions of each crossing in each array
<rumbler31>
and when I sum up the distances to each crossing and sort them, the lowest number I get is not the answer
<LdBeth>
I gave up at day 17 anyway
<rumbler31>
I suspect my coordinates are not truly in order in the array, but from what I can tell, they should be. order doesn't matter for part 1 which would explain why I can answer that and not this
<LdBeth>
rumbler31: umm, so did your answer works on the small data sample they give?
kscarlet has joined #lisp
<rumbler31>
yes
<rumbler31>
I"m vexxed
<rumbler31>
oh there are two test inputs, let me try the second
<rumbler31>
yup, same answer
<rumbler31>
its possible I'm missing a crossing I guess
kscarlet` has joined #lisp
montxero has quit [Read error: Connection reset by peer]
ssd532``` has joined #lisp
kscarlet has quit [Ping timeout: 265 seconds]
<LdBeth>
rumbler31: maybe you can try a more “clever” method, constructing a weighted graph and search for the shortest path by breadth first search
montxero has joined #lisp
<rumbler31>
hmm a weighted graph
ssd532`` has quit [Ping timeout: 260 seconds]
<montxero>
no-defun-allowed: Exactly. I mean something similar to Gnuplot
selfsymmetric-mu has quit [Ping timeout: 265 seconds]
<montxero>
Preferably without depending on LTK or the like
<LdBeth>
rumbler31: if you search something like Dijkstra shortest path ;)
<no-defun-allowed>
montxero: You would want to determine a transformation from the coordinate space you want for the points (possibly the minimum X and Y values to maximum) to the coordinate space of your graphics output. Then you apply those transformations to your points and draw them.
<beach>
Like I said, when you find the help you get to be useful, it is customary to acknowledge that fact, like by saying "smokeink: Thanks!"
<bestinket>
when is the (push cd *db*) executed, thanks beach smokeink
<beach>
When you call ADD-RECORD.
<smokeink>
you're welcome
<no-defun-allowed>
When the Lisp evaluator calls ADD-RECORD with your CD, it then evaluates the body of ADD-RECORD.
<no-defun-allowed>
That occurs after the same process is done with MAKE-CD.
* jackdaniel
smells PCL :)
<ck_>
good choice for a christmas present
ebzzry has joined #lisp
<beach>
bestinket: Common Lisp is no different from most languages in this respect. It is call-by-value eager evaluation.
<bestinket>
(add-record (make-cd ...)) asa add-record is called, make-cd too is called so make-cd is executed first then push..
<smokeink>
right
<beach>
Right, just with most other languages.
<beach>
just *as* with...
<jackdaniel>
beach: in function calls first arguments are evaluated then the function is applied to them (left-to-right order of evaluation is guaranteed, unlike i.e C)
<jackdaniel>
bestinket: °
<jackdaniel>
not you beach , I'm sure you know that ;-)
<beach>
Thanks for the reminder though! :)
<jackdaniel>
bestinket: you may override that behavior (the evaluation rule) with macros, but you don't need to concern yourself with that yet
<bestinket>
i am not comfortable in the repl
orivej has joined #lisp
<jackdaniel>
you may write your code in the file and then compile/load said file like in other languages
kscarlet` has joined #lisp
<jackdaniel>
repl is /something more/, not the obligatory tool
space_otter has quit [Remote host closed the connection]
<bestinket>
repl has no persistence unlike jupyter notebooks
<bestinket>
and no "cells"
<jackdaniel>
then use cl-jupyter
<jackdaniel>
no problem with that
<beach>
bestinket: The usual way of working is that you have an Emacs+SLIME instance, and you have one Emacs window with a source file and the other with the REPL.
<jackdaniel>
you can't say that oranges are bad becase they are not as fast as a car -- they are two different things and speed is not axis of their comparison
<beach>
bestinket: You then edit the file and hit a few keystrokes to have SLIME transfer the code to your Common Lisp system.
<beach>
bestinket: That way you have persistence.
<beach>
bestinket: The REPL is used mostly for testing the code you just typed in.
<no-defun-allowed>
You can write any length of code in the REPL.
<jackdaniel>
yes, that would be fair statement that it works best for one-liners, you use file buffers for longer snippets
<beach>
bestinket: Not necessarily one-liners, but for code that you don't intend to save, like testing the code you *do* want to save.
<jackdaniel>
but asn no-defun-allowed noted, you may write code of any length in the repl
<no-defun-allowed>
I would say that LOADing a file and typing it form-by-form into the REPL give you the same result, but there probably would be some difference.
<bestinket>
because if we write 4 lines, then how would be get the repl's 4 lines to load inside the file for persistence?
<jackdaniel>
I don't understand the above question
<smokeink>
just do as beach said, save your sourcecode in a file and use Emacs with Slime
<bestinket>
you said we can write longer lines inside repl
<no-defun-allowed>
You could use DRIBBLE to write out everything that happens in the REPL to a file for later analysis.
<no-defun-allowed>
You could also use (write-line "hello"), but admittedly I don't know if it's considered as bad to use FORMAT with no arguments, as, say, it is in C to use printf with no arguments.
jonatack has quit [Ping timeout: 265 seconds]
_whitelogger has joined #lisp
rippa has joined #lisp
varjag has joined #lisp
orivej has quit [Ping timeout: 260 seconds]
bestinket has quit [Ping timeout: 260 seconds]
brettgilio has quit [Quit: Quit]
brettgilio has joined #lisp
vidak` has quit [Ping timeout: 260 seconds]
brettgilio has quit [Client Quit]
notzmv has quit [Remote host closed the connection]
brettgilio has joined #lisp
je4i has quit [Read error: Connection reset by peer]
je4i has joined #lisp
notzmv has joined #lisp
notzmv is now known as Guest51983
Guest51983 is now known as [ouo]
roliacole has joined #lisp
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 260 seconds]
edgar-rft has quit [Ping timeout: 265 seconds]
edgar-rft has joined #lisp
kscarlet` has quit [Ping timeout: 268 seconds]
longshi has quit [Quit: WeeChat 2.6]
dddddd has joined #lisp
shifty has quit [Ping timeout: 268 seconds]
shifty has joined #lisp
jonatack has joined #lisp
ebrasca has joined #lisp
jonatack has quit [Ping timeout: 246 seconds]
roliacole has quit [Ping timeout: 268 seconds]
fookara has quit [Remote host closed the connection]
libertyprime has quit [Quit: leaving]
shangul has joined #lisp
narimiran has quit [Ping timeout: 268 seconds]
terpri has quit [Ping timeout: 260 seconds]
reg32 has joined #lisp
<reg32>
Hi Phoe
<reg32>
are you active in the channel?
<beach>
He is.
<reg32>
Phoe: I have fixed Roswell bug #395. I know that you are interested into it
<reg32>
culd you test it also on your side?
<reg32>
I am just a contributor so my fix is not merged yet but I have just raised a pull request. The pull must be merged and roswell bult from sources
reg32 has quit [Ping timeout: 260 seconds]
libertyprime has joined #lisp
reg32 has joined #lisp
johnjay has quit [Ping timeout: 265 seconds]
reg32 has quit [Remote host closed the connection]
hhdave has quit [Quit: hhdave]
emaczen has quit [Ping timeout: 265 seconds]
orivej has joined #lisp
orivej has quit [Ping timeout: 240 seconds]
_whitelogger has joined #lisp
rumbler31 has joined #lisp
smokeink has quit [Ping timeout: 265 seconds]
rumbler31 has quit [Ping timeout: 268 seconds]
orivej has joined #lisp
Kevslinger has joined #lisp
orivej has quit [Ping timeout: 258 seconds]
<Xach>
wotta nitemare. cl-colors2 is a fork of cl-colors that does not rename the package and now something depends on both and it's broken!
<Xach>
why on earth do i have both?
<dlowe>
why does something depend on both
<Xach>
dlowe: an old project depended on both prove and cl-colors. prove just added a dep on cl-colors2. it's indirect.
Bourne has quit [Ping timeout: 258 seconds]
ebrasca has quit [Remote host closed the connection]
<Xach>
(i think)
<eeeeeta>
Xach: does quicklisp / ASDF actually allow you to depend on two packages with different versions?
<phoe>
minion: memo for reg32: Thanks! I'll check it out later.
<minion>
Remembered. I'll tell reg32 when he/she/it next speaks.
<eeeeeta>
I'm guessing not, because then you can't like load both
<_death>
Xach: multiple wtfs there, but I guess the easiest fix is to convince cl-colors2 and its users to change package name
wxie has joined #lisp
<Xach>
eeeeeta: no. but two different system names are two different systems.
<eeeeeta>
Xach: so if a library author made a breaking change, then everything would be broken until dependent libraries fixed it?
<Xach>
yes
<galdor>
you cannot really force people to maintain their code a certain way
<galdor>
at some point, if a system breaks everything, people will stop using it
<galdor>
or you can decide quicklisp is highly opiniated and only accept systems which behave a specific way, but then quicklisp users will complain not having access to other systems
bitmapper has joined #lisp
<Xach>
galdor: if something is maintained in a way that makes it impossible to include in quicklisp, i let people know. they can change it if they like.
dmiles has joined #lisp
Einwq has joined #lisp
<galdor>
impossible sure; but it's hard to police all the little conflicts (packages, readtables, etc.)
<Xach>
yes, that is not a goal for me.
<Xach>
there are combinations of packages that cannot be used together and i don't consider that a very important problem.
<Xach>
it is a minor problem today and only noticed because it replaces a bigger problem.
oni-on-ion has quit [Ping timeout: 258 seconds]
shifty has quit [Ping timeout: 268 seconds]
narimiran has joined #lisp
Bourne has joined #lisp
oxum has joined #lisp
refpga has joined #lisp
Bike has joined #lisp
oxum has quit [Ping timeout: 260 seconds]
LiamH has joined #lisp
Einwq has quit [Quit: Leaving]
<Xach>
maybe it's not related to prove after all
gareppa has joined #lisp
dmiles has quit []
gareppa has quit [Quit: Leaving]
oxum has joined #lisp
roliacole has joined #lisp
Lord_of_Life_ has joined #lisp
brettgilio has quit [Ping timeout: 260 seconds]
Lord_of_Life has quit [Ping timeout: 258 seconds]
Lord_of_Life_ is now known as Lord_of_Life
rumbler31 has joined #lisp
wxie has quit [Ping timeout: 260 seconds]
pfdietz has joined #lisp
rumbler31 has quit [Ping timeout: 265 seconds]
yottabyte has joined #lisp
<yottabyte>
hi, is anyone here familiar with ABCL?
<jackdaniel>
yottabyte: I'm sure that some are. Is it abcl-specific question? if you find no luck here, then you may try #abcl channel
<yottabyte>
oh, I didn't know there was an IRC channel for ABCL, I'll check it out since it is ABCL specific, thanks
<jackdaniel>
sure
roliacole has quit [Ping timeout: 240 seconds]
oxum has quit [Ping timeout: 258 seconds]
pnp has joined #lisp
learning has joined #lisp
orivej has joined #lisp
jonatack has joined #lisp
specbot has quit [Remote host closed the connection]
minion has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 260 seconds]
oxum has joined #lisp
roliacole has joined #lisp
rumbler31 has joined #lisp
learning has quit [Remote host closed the connection]
cosimone has joined #lisp
rumbler31 has quit [Ping timeout: 265 seconds]
minion has joined #lisp
specbot has joined #lisp
jebes has joined #lisp
ebzzry has quit [Ping timeout: 260 seconds]
learning has joined #lisp
oxum has quit [Ping timeout: 240 seconds]
karlosz has joined #lisp
dmiles has joined #lisp
stux|RC has quit [Ping timeout: 260 seconds]
mono has quit [Remote host closed the connection]
monokrom has joined #lisp
learning has quit []
karayan has joined #lisp
stux|RC has joined #lisp
oxum has joined #lisp
ebzzry has joined #lisp
karayan has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
duuqnd has joined #lisp
sjl has quit [Quit: WeeChat 2.2-dev]
oxum has quit [Ping timeout: 258 seconds]
karlosz has quit [Quit: karlosz]
shangul has quit [Ping timeout: 268 seconds]
shangul has joined #lisp
william1 has joined #lisp
oxum has joined #lisp
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 258 seconds]
learning has joined #lisp
cosimone has quit [Quit: Quit.]
brown121408 has quit [Ping timeout: 268 seconds]
learning has quit []
brown121407 has joined #lisp
oxum has quit [Ping timeout: 265 seconds]
EvW has joined #lisp
ArthurStrong has joined #lisp
pticochon has quit [Ping timeout: 265 seconds]
karlosz has joined #lisp
brettgilio has joined #lisp
oxum has joined #lisp
je4i has quit [Ping timeout: 264 seconds]
oxum has quit [Ping timeout: 240 seconds]
cantstanya has quit [Ping timeout: 240 seconds]
_paul0 is now known as paul0
karswell has joined #lisp
cantstanya has joined #lisp
ebzzry has quit [Ping timeout: 260 seconds]
shangul has quit [Ping timeout: 268 seconds]
pnp has quit [Remote host closed the connection]
bitmapper has quit [Remote host closed the connection]
bitmapper has joined #lisp
oxum has joined #lisp
puchacz has joined #lisp
<puchacz>
hi, is sbcl 2.0.0 a big rewrite of something? or just new year?
<jackdaniel>
puchacz: just new decade
<puchacz>
:-)
cosimone has joined #lisp
cosimone has quit [Read error: Connection reset by peer]
cosimone_ has joined #lisp
cosimone_ has quit [Quit: Quit.]
ggole has quit [Quit: Leaving]
<pfdietz>
The huge change is that the most significant digit has increased.
<pfdietz>
Oh, and the usual efficiency and correctness and code cleanliness modifications.
oxum has quit [Ping timeout: 258 seconds]
roliacole has quit [Read error: No route to host]
<puchacz>
pfdietz, sure I am very happy with sbcl
roliacole has joined #lisp
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 258 seconds]
refpga has quit [Remote host closed the connection]
torbo has joined #lisp
william1 has quit [Quit: WeeChat 1.9.1]
william1 has joined #lisp
<pjb>
puchacz: now we know that for sbcl, version v.a.i means year:2000+v*10+a month:i
<pjb>
perhaps month:i+1
mark91 has joined #lisp
<puchacz>
pjb: it makes sense as sbcl is released monthly
CrazyEddy has quit [Ping timeout: 246 seconds]
<mark91>
Is there a way to launch an interactive CLI app with lisp (SBCL)? I'm trying to emulate the Ruby command `system "vim CHANGES.md && git add CHANGES.md` which launches vim, allows you to edit and then adds the file to Git. I tried `uiop:run-program` but it complains about not being a terminal.
``Erik_ has joined #lisp
``Erik has quit [Ping timeout: 260 seconds]
oxum has joined #lisp
gravicappa has quit [Ping timeout: 258 seconds]
<pjb>
mark91: you can open a X terminal with xterm: xterm -e /bin/bash -l -c "your command here"
<mark91>
pjb: Thanks that might be a good option. Since I posted my question I did discover that `run-program` supports `:input/:output :interactive` which seems to do what I want.
<pjb>
mark91: without xterm, you can use eg. Terminal.app: (echo ls ; echo read -p done done) > /tmp/c.command ; chmod 755 /tmp/c.command ; open -a Terminal.app /tmp/c.command
<pjb>
ls = your command.
<pjb>
mark91: ccl comes with /Applications/Clozure CL.app/Contents/Resources/AltConsole.app to do this kind of stuff…
<pjb>
mark91: because you might be under the illusion that a terminal is available. What if your application is launched by Siri to answer a question in a purely audio user interface?
<mark91>
The intended user for this app is me and it assumes you edit markdown in vim :)
<mark91>
Hey siri, 2 j c w type ... :)
<mark91>
That said, I've been meaning to read that book. I think I'll get it now.
<pjb>
mark91: just be careful with the context.
<jasom>
TIL sb-posix won't build with a writable root
<jasom>
one of the tests checks that root isn't other-writable as a sanity check for stat
<pjb>
I'd propose a time machine, or patches…
ealfonso has joined #lisp
<jasom>
I was building portacle in a chroot, which is how I discovered it.
je4i has joined #lisp
mark91 has quit [Remote host closed the connection]
shifty has joined #lisp
gareppa has joined #lisp
duuqnd has quit [Remote host closed the connection]
duuqnd has joined #lisp
Bourne has quit [Read error: Connection reset by peer]
oxum has quit [Ping timeout: 240 seconds]
orivej has joined #lisp
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
brettgilio has quit [Ping timeout: 260 seconds]
bestinket has joined #lisp
orivej has quit [Ping timeout: 265 seconds]
roliacole has quit [Ping timeout: 240 seconds]
EvW has quit [Ping timeout: 248 seconds]
Bourne has joined #lisp
je4i has quit [Ping timeout: 264 seconds]
EvW has joined #lisp
oxum has joined #lisp
jebes has quit [Remote host closed the connection]
pfdietz has quit [Remote host closed the connection]
ealfonso has quit [Ping timeout: 260 seconds]
william1 has quit [Quit: WeeChat 1.9.1]
[ouo] has quit [Read error: Connection reset by peer]
rumbler31 has joined #lisp
Jeanne-Kamikaze has joined #lisp
gareppa has quit [Quit: Leaving]
rumbler31 has quit [Ping timeout: 260 seconds]
oxum has quit [Ping timeout: 268 seconds]
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 260 seconds]
william1 has joined #lisp
william1 has quit [Client Quit]
william1 has joined #lisp
william1 has quit [Client Quit]
william1 has joined #lisp
sjl has joined #lisp
rumbler31 has joined #lisp
asdf_asdf_asdf has joined #lisp
shifty has quit [Ping timeout: 258 seconds]
oxum has joined #lisp
rumbler31 has quit [Ping timeout: 260 seconds]
clothespin has joined #lisp
gravicappa has joined #lisp
akoana has joined #lisp
torbo has quit [Remote host closed the connection]
torbo has joined #lisp
bestinket has quit [Ping timeout: 240 seconds]
learning has joined #lisp
gravicappa has quit [Ping timeout: 260 seconds]
LiamH has quit [Quit: Leaving.]
william1 has quit [Ping timeout: 260 seconds]
<Inline>
happy new year
<duuqnd>
Happy new year!
oxum has quit [Ping timeout: 260 seconds]
PuercoPope has joined #lisp
dale has joined #lisp
clothespin has quit [Ping timeout: 268 seconds]
<akoana>
happy new year!
orivej has joined #lisp
<PuercoPope>
(happpy (incf year))!
<PuercoPope>
*happyp
<ArthurStrong>
PuercoPope: #T
<no-defun-allowed>
ArthurStrong: you misspelled T
<ArthurStrong>
no-defun-allowed: what is the correct way?
<ArthurStrong>
to spell it?
<akoana>
t
<ArthurStrong>
OK
<akoana>
you nasty schemer :) lol
<ArthurStrong>
yep
<ArthurStrong>
a scout here
<ArthurStrong>
spy
<akoana>
haha you've been discovered :)
<LdBeth>
Wtt
* ArthurStrong
like Scheme and Racket more. But there are more good books based on CL
efm has joined #lisp
rumbler31 has joined #lisp
Oladon has joined #lisp
<akoana>
ArthurStrong: come on (it's) lisp - happy new year!
<akoana>
:)
rumbler31 has quit [Remote host closed the connection]
duuqnd has quit []
mn3m has joined #lisp
william1 has joined #lisp
oxum has joined #lisp
asdf_asdf_asdf has quit [Remote host closed the connection]
stepnem_ has quit [Read error: Connection reset by peer]