<marz_d`ghostman>
I'm having problems installing racket on Ubuntu 16.04 though. After doing a sudo apt-get update, do I install it via sudo apt-get install racket though?
lavaflow_ has quit [Ping timeout: 258 seconds]
acarrico has quit [Ping timeout: 258 seconds]
dddddd has quit [Remote host closed the connection]
<J_Arcane>
yep
<marz_d`ghostman>
Ah, I successfully installed it. Seems I have to reopen my terminal for it to refresh :) thanks
ym555 has quit [Quit: leaving...]
marz_d`ghostman has quit [Ping timeout: 256 seconds]
caltelt_ has joined #racket
caltelt_ has quit [Remote host closed the connection]
caltelt_ has joined #racket
caltelt has quit [Ping timeout: 258 seconds]
pera has quit [Ping timeout: 258 seconds]
ubLIX has quit [Quit: ubLIX]
Guest65111 has quit [Ping timeout: 268 seconds]
pera has joined #racket
lavaflow_ has joined #racket
YuGiOhJCJ has quit [Remote host closed the connection]
lavaflow_ is now known as lavaflow
sagax has joined #racket
endformationage has quit [Ping timeout: 268 seconds]
ricekrispie has joined #racket
ricekrispie2 has quit [Ping timeout: 244 seconds]
GoldRin has quit [Ping timeout: 244 seconds]
dan_f has joined #racket
dan_f has quit [Quit: dan_f]
urbanslug has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
sauvin has joined #racket
pera has quit [Quit: leaving]
dan_f has joined #racket
<ecraven>
hm.. should 'raco make foo.scm' work with a file that declares #lang r7rs?
<ecraven>
I'd like to precompile that file, to run it as a benchmark ;)
<ecraven>
this used to work in previous racket versions, but seems to not work any longer.
<ecraven>
I have done 'raco install r7rs' to pull in the dependencies
dan_f has quit [Quit: dan_f]
Arcaelyx has quit [Ping timeout: 255 seconds]
dan_f has joined #racket
dan_f has quit [Quit: dan_f]
orivej has quit [Ping timeout: 258 seconds]
urbanslug has quit [Ping timeout: 246 seconds]
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 244 seconds]
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 245 seconds]
urbanslug has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
urbanslug has quit [Ping timeout: 246 seconds]
urbanslug has joined #racket
<tonyg>
I need advice on use of the evt system. Say I have a TCP-based protocol that I'm reading frames from. I want to turn my input-port into an event that fires only when there's a complete frame ready for me. When only half a frame is available, it shouldn't fire. So there has to be some kind of stateful parsing logic in there somewhere... but where?
<tonyg>
The obvious solution is to spawn a thread and do the reading in there, and use a channel to hand over complete frames
<tonyg>
but it's gross for all sorts of exception-handling thread-management reasons
<tonyg>
and shouldn't it be possible to do with just the evt system?
<tonyg>
Perhaps I need... replace-evt?? Or.... uh.... guard-evt???!?!
urbanslug has quit [Ping timeout: 258 seconds]
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 246 seconds]
urbanslug has joined #racket
_whitelogger has joined #racket
momofarm has joined #racket
longshi has joined #racket
mSSM has joined #racket
urbanslug has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 255 seconds]
urbanslug has joined #racket
ZombieChicken has quit [Remote host closed the connection]
iyzsong has joined #racket
urbanslug has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
urbanslug has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
ubLIX has joined #racket
urbanslug has quit [Ping timeout: 244 seconds]
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 258 seconds]
jao has joined #racket
longshi has quit [Ping timeout: 258 seconds]
acarrico has joined #racket
dddddd has joined #racket
longshi has joined #racket
caltelt_ has quit [Ping timeout: 258 seconds]
acarrico has quit [Ping timeout: 244 seconds]
libertyprime has quit [Quit: leaving]
rubic88 has joined #racket
caltelt has joined #racket
ng0_ has quit [Remote host closed the connection]
lavaflow has quit [Ping timeout: 258 seconds]
q9929t has joined #racket
caltelt has quit [Ping timeout: 245 seconds]
badkins_ has joined #racket
BSLANG` has joined #racket
Mayoi has joined #racket
acarrico has joined #racket
Arcaelyx has joined #racket
nckx- has joined #racket
danderso1 has joined #racket
logicmoo has joined #racket
sauvin has quit [*.net *.split]
badkins has quit [*.net *.split]
BSLANG has quit [*.net *.split]
nckx has quit [*.net *.split]
Lowl3v3l has quit [*.net *.split]
erkin has quit [*.net *.split]
rain1 has quit [*.net *.split]
gabot has quit [*.net *.split]
`micro has quit [*.net *.split]
nckx- is now known as nckx
dmiles has quit [*.net *.split]
eMBee has quit [*.net *.split]
mpcjanssen has quit [*.net *.split]
danderson has quit [*.net *.split]
rubic88 has quit [Ping timeout: 264 seconds]
urbanslug has joined #racket
sauvin has joined #racket
mpcjanssen has joined #racket
rain1 has joined #racket
Lowl3v3l has joined #racket
gabot has joined #racket
rubic88 has joined #racket
lavaflow has joined #racket
dan_f has joined #racket
urbanslug has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
ubLIX has quit [Ping timeout: 268 seconds]
ubLXI has joined #racket
dan_f has quit [Quit: dan_f]
iyzsong has quit [Ping timeout: 250 seconds]
lockywolf has joined #racket
ubLXI has quit [Ping timeout: 252 seconds]
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 276 seconds]
urbanslug has quit [Ping timeout: 258 seconds]
ubLIX has joined #racket
endformationage has joined #racket
urbanslug has joined #racket
lavaflow has quit [Ping timeout: 246 seconds]
ym555 has joined #racket
urbanslug has quit [Ping timeout: 258 seconds]
efm has quit [Remote host closed the connection]
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 258 seconds]
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 252 seconds]
efm has joined #racket
longshi has quit [Ping timeout: 245 seconds]
raoul1 has quit [Quit: WeeChat 1.9.1]
pfdietz has quit [Ping timeout: 256 seconds]
pera has joined #racket
q9929t has quit [Quit: q9929t]
dan_f has joined #racket
kd7ixo has quit [Quit: inside the toybox]
urbanslug has joined #racket
manualcrank has joined #racket
ubLIX has quit [Quit: ubLIX]
longshi has joined #racket
urbanslug has quit [Ping timeout: 246 seconds]
dan_f has quit [Quit: dan_f]
dan_f has joined #racket
dan_f has quit [Client Quit]
orivej has joined #racket
meepdeew has joined #racket
dan_f has joined #racket
meepdeew has quit [Remote host closed the connection]
dan_f has quit [Client Quit]
efm has quit [Ping timeout: 246 seconds]
efm has joined #racket
<samth>
tonyg: who's doing the stateful parsing before you call `sync`?
ZombieChicken has joined #racket
efm has quit [Ping timeout: 258 seconds]
shakdwipeea has joined #racket
FreeFull has joined #racket
dan_f has joined #racket
dan_f has quit [Client Quit]
mSSM has quit [Quit: WeeChat 2.4]
akaWolf has joined #racket
<akaWolf>
hi, guys! what is the proper way to run utils from installed package?
<akaWolf>
I install racket-langserver. but how to use this properly?
acarrico has quit [Ping timeout: 250 seconds]
sauvin has quit [Remote host closed the connection]
dan_f has joined #racket
acarrico has joined #racket
selimcan has joined #racket
ubLIX has joined #racket
notzmv has quit [Ping timeout: 268 seconds]
ng0 has joined #racket
kd7ixo has joined #racket
urbanslug has joined #racket
dan_f has quit [Quit: dan_f]
urbanslug has quit [Ping timeout: 272 seconds]
<bremner>
are many people still actively teaching with plai/gc (or plai/gc2)? I noticed Shriram dropped it from the second edition of plai (fwiw).
<akaWolf>
how to use racket-langserver?
<bremner>
akaWolf: I guess it depends what you want to use it from. What editor do you have in mind?
urbanslug has joined #racket
acarrico has quit [Ping timeout: 248 seconds]
<akaWolf>
bremner: Qt Creator
<akaWolf>
I specify binary «racket» and path to «main.rkt» as arguments
urbanslug has quit [Ping timeout: 272 seconds]
<akaWolf>
when you install similar package in Python, it automatically creates binary
<akaWolf>
I think there should be similar mechanism
meepdeew has joined #racket
ym555 has quit [Ping timeout: 258 seconds]
<bremner>
akaWolf: can you get the server running manually?
<akaWolf>
yep
<akaWolf>
with «racket /path/to/main.rkt»
<akaWolf>
even under IDE after small contract fixes it's working
<akaWolf>
but for some weird reasons no highlighting
<tonyg>
samth: the example I'm facing is from racket-rfc6455, where I have a websocket-connection wsc and run (sync ... (handle-evt wsc (lambda (_) (do-something-with (ws-recv wsc)))) ...)
<tonyg>
samth: it's *normally* ok except when there are ping/pong packets going on behind the scenes.
<tonyg>
samth: then I need to wake up on socket activity but not get as far as committing to hand out an incoming message, because there might not be one ready
<tonyg>
i'll see tomorrow about altering rfc6455 to use io-evt / io-wait! from that gist, which should give me a ws-recv-evt without having to redo the implementation
<tonyg>
i suspect I'll also be turning the gist into a blogpost
<tonyg>
it's interesting, there don't seem to be many uses of replace-evt out there
<samth>
that seems worryingly not threadsafe
casaca has joined #racket
pierpal has quit [Ping timeout: 252 seconds]
ZombieChicken has quit [Quit: Have a nice day]
ng0 has quit [Ping timeout: 256 seconds]
ZombieChicken has joined #racket
ng0 has joined #racket
<tonyg>
samth: how so? no threads involved
<samth>
if you use the same evt from multiple threads
<tonyg>
samth: oh right. yes, don't do that
<tonyg>
also don't read from the same input-port from multiple threads
longshi has quit [Ping timeout: 252 seconds]
<tonyg>
but it definitely doesn't have the same nice all-or-nothing guarantees that other simpler evts have
<tonyg>
which is a bit disappointing. it'd be interesting to think more about that part of it
<samth>
Does reading from an input port from different threads not work?
<tonyg>
but I don't have any really good ideas (except transactions of one flavour or another, I suppose)
<tonyg>
samth: sure, but it'll interleave the inputs randomly
<tonyg>
which is much like what'd happen with io-evts
<samth>
I think it could be much worse
<tonyg>
well, which is worse? two threads running ws-recv on the same connection, or two threads running io-evt ws-recv-evt (as we imagine it) on the same connection?
<tonyg>
they'll interleave more or less the same kind of way
<tonyg>
in both cases there aren't any atomic events that suit. it's possible that use of port-commit-peeked and progress-evt etc could get you to something somewhat transactional, but boy is that an unfriendly way to program
ubLIX has quit [Quit: ubLIX]
<tonyg>
perhaps i should learn more about progress-evt and friends; maybe there's a pleasant wrapper to let me program in a similar style to io-evt (which lets me program in a similar style to plain old blocking reads) waiting to be discovered
miskatonic has joined #racket
notzmv has joined #racket
ZombieChicken has quit [Ping timeout: 256 seconds]
longshi has joined #racket
rubic88 has quit [Remote host closed the connection]
longshi has quit [Ping timeout: 248 seconds]
shakdwipeea has quit [Remote host closed the connection]
caltelt has joined #racket
libertyprime has joined #racket
selimcan has quit [Remote host closed the connection]
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
pierpal has joined #racket
pierpal has quit [Ping timeout: 248 seconds]
Sgeo_ has joined #racket
Sgeo__ has quit [Ping timeout: 244 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]