samth changed the topic of #racket to: Racket v7.3 has been released: https://blog.racket-lang.org/2019/05/racket-v7-3.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
q9929t has joined #racket
orivej has quit [Ping timeout: 268 seconds]
keep_learning_M has joined #racket
q9929t has quit [Client Quit]
lockywolf has joined #racket
aquiandres has joined #racket
lockywolf has quit [Ping timeout: 244 seconds]
efm has quit [Ping timeout: 245 seconds]
clacke_movim has joined #racket
englishm has quit [Ping timeout: 258 seconds]
niceplace has quit [Ping timeout: 258 seconds]
englishm has joined #racket
niceplace has joined #racket
dddddd has quit [Read error: Connection reset by peer]
ubLIX has quit [Quit: ubLIX]
ZombieChicken has quit [Quit: WeeChat 2.5]
eMBee has quit [Ping timeout: 258 seconds]
eMBee has joined #racket
FreeFull has quit []
jao has quit [Remote host closed the connection]
FreeFull has joined #racket
jao has joined #racket
efm has joined #racket
Nomenclatura has quit [Quit: q]
orivej has joined #racket
lockywolf has joined #racket
jao has quit [Ping timeout: 245 seconds]
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 248 seconds]
teardown has quit [Ping timeout: 268 seconds]
sauvin has quit [Read error: Connection reset by peer]
lockywolf_ has quit [Ping timeout: 248 seconds]
lockywolf has joined #racket
lockywolf has quit [Ping timeout: 258 seconds]
lockywolf has joined #racket
orivej has joined #racket
ZombieChicken has joined #racket
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #racket
eMBee has quit [Ping timeout: 246 seconds]
eMBee has joined #racket
Lowl3v3l has quit [Ping timeout: 272 seconds]
endformationage has quit [Quit: WeeChat 2.5]
manualcrank has quit [Quit: WeeChat 1.9.1]
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 258 seconds]
lockywolf has joined #racket
lockywolf_ has quit [Ping timeout: 244 seconds]
zacts has joined #racket
orivej has quit [Ping timeout: 246 seconds]
Arcaelyx has quit [Ping timeout: 248 seconds]
zacts has quit [Client Quit]
zacts has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 244 seconds]
Sgeo has joined #racket
Sgeo_ has quit [Ping timeout: 258 seconds]
Sgeo_ has joined #racket
Sgeo has quit [Ping timeout: 245 seconds]
notzmv has joined #racket
lockywolf_ has quit [Ping timeout: 248 seconds]
ZombieChicken has quit [Disconnected by services]
forgottenwizard has joined #racket
lockywolf has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 246 seconds]
samth_ has joined #racket
cemerick_ has joined #racket
NeoHamled_ has joined #racket
lockywolf_ has quit [Read error: Connection reset by peer]
lockywolf has joined #racket
cantstanya has quit [*.net *.split]
cemerick has quit [*.net *.split]
NeoHamled has quit [*.net *.split]
samth has quit [*.net *.split]
cemerick_ is now known as cemerick
NeoHamled_ is now known as NeoHamled
samth_ is now known as samth
notzmv has quit [Ping timeout: 248 seconds]
sauvin has joined #racket
clacke_movim has left #racket [#racket]
eMBee has quit [Ping timeout: 245 seconds]
eMBee has joined #racket
clacke_movim has joined #racket
clacke_movim has left #racket [#racket]
clacke_movim has joined #racket
Sgeo__ has joined #racket
Sgeo_ has quit [Ping timeout: 245 seconds]
FreeFull has quit []
nolanv has quit [Read error: Connection reset by peer]
nolanv has joined #racket
lockywolf has quit [Ping timeout: 245 seconds]
forgottenwizard has quit [Quit: WeeChat 2.5]
vraid has joined #racket
manualcrank has joined #racket
euhmeuh has joined #racket
eMBee has quit [Ping timeout: 245 seconds]
eMBee has joined #racket
tilpner has quit [Quit: reboot]
Sgeo__ has quit [Read error: Connection reset by peer]
Sgeo__ has joined #racket
tilpner has joined #racket
keep_learning_M has quit [Quit: This computer has gone to sleep]
tilpner has quit [Ping timeout: 272 seconds]
tilpner has joined #racket
lavaflow_ has quit [Ping timeout: 245 seconds]
dddddd has joined #racket
badkins_ has joined #racket
iclon_ has joined #racket
orivej has joined #racket
iclon has quit [Ping timeout: 246 seconds]
eMBee has quit [Ping timeout: 245 seconds]
badkins has quit [Ping timeout: 244 seconds]
dvdmuckle has quit [Ping timeout: 246 seconds]
dvdmuckle has joined #racket
eMBee has joined #racket
nullman has quit [Ping timeout: 245 seconds]
nullman has joined #racket
GoldRin has joined #racket
cantstanya has joined #racket
lockywolf has joined #racket
cantstanya has quit [Ping timeout: 260 seconds]
cantstanya has joined #racket
ubLIX has joined #racket
lockywolf has quit [Read error: Connection reset by peer]
iclon has joined #racket
iclon_ has quit [Ping timeout: 245 seconds]
lockywolf has joined #racket
FreeFull has joined #racket
lockywolf has quit [Ping timeout: 272 seconds]
GoldRin has quit [Ping timeout: 272 seconds]
dharog has quit [Ping timeout: 248 seconds]
aquiandres has quit [Ping timeout: 248 seconds]
ubLX has joined #racket
ShalokShalom has quit [Remote host closed the connection]
ubLIX has quit [Ping timeout: 245 seconds]
dharog has joined #racket
iyzsong has joined #racket
dharog has quit [Ping timeout: 244 seconds]
clacke_movim has left #racket [#racket]
zipper has joined #racket
dharog has joined #racket
zipper has quit [Ping timeout: 272 seconds]
sagax has quit [Ping timeout: 272 seconds]
sagax has joined #racket
endformationage has joined #racket
Urfin has quit [Ping timeout: 268 seconds]
dharog has quit [Ping timeout: 245 seconds]
badkins_ has quit [Remote host closed the connection]
zipper has joined #racket
selimcan has joined #racket
Arcaelyx has joined #racket
efm has quit [Ping timeout: 268 seconds]
jcowan has quit [Quit: Connection closed for inactivity]
clacke_movim has joined #racket
badkins has joined #racket
<greghendershott> rudybot: later tell ZombieChicken Although I don't know what's going on the answer might be in the appendix G.2 about Microsoft Windows and section 22.5 Coding Systems
<rudybot> greghendershott: I asked `MemoServ' to forward the message to ZombieChicken.
jao has joined #racket
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
ym555 has joined #racket
m1dnight_ has joined #racket
lockywolf has joined #racket
m1dnight1 has quit [Ping timeout: 245 seconds]
jao has quit [Remote host closed the connection]
iyzsong has quit [Ping timeout: 252 seconds]
m1dnight1 has joined #racket
m1dnight_ has quit [Ping timeout: 258 seconds]
Sgeo__ has quit [Ping timeout: 268 seconds]
m1dnight_ has joined #racket
jao has joined #racket
m1dnight1 has quit [Ping timeout: 268 seconds]
sandersantema has joined #racket
YuGiOhJCJ has joined #racket
sandersantema has quit [Quit: leaving]
lockywolf has quit [Ping timeout: 246 seconds]
sandersantema has joined #racket
lavaflow_ has joined #racket
<sandersantema> Hi there, this might be a bit of a longshot but I'm learning racket and I'd like to have syntax highlighting of racket code inside of AnkiSRS, currently embedding pasterack pastes seem like a good option but I'd like to use it locally. Has anybody got any experience using pasterack locally or Anki to learn (the basics) of racket in general?
zipper has quit [Ping timeout: 248 seconds]
lavaflow_ has quit [Ping timeout: 245 seconds]
lavaflow_ has joined #racket
selimcan has quit [Remote host closed the connection]
selimcan has joined #racket
sandersantema has quit [Quit: Lost terminal]
Lowl3v3l has joined #racket
badkins has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 272 seconds]
<euhmeuh> Isn't Anki a flashcard program for learning natural languages? If it works for you, it's fine, but I cannot see myself suggesting new learners to use flashcards and grinding in order to learn a programming language. It just doesn't work to learn programming by heart. It's a craft that requires experimentation, trial and errors, not just memorization. I'm not inherently against this, you're free to do whatever you please with your learning met
<euhmeuh> Anyway to answer your question, I think you could take screenshots of pasterack and put them in Anki. Thaht would be the easiest method
<euhmeuh> Or maybe just take screenshots of a running DrRacket
zipper has joined #racket
dimitarvp has joined #racket
ym555_ has joined #racket
ym555 has quit [Ping timeout: 245 seconds]
<euhmeuh> And I say that having used Anki for learning Japanese Kanji. Even for that, it doesn't work that good. Your brain learns to recognize the symbol by itself, or in the words you provide as examples, but when you get in the wild and try to read new words, you discover your brain is unable to recognize the exact same kanji you know already, because it's inside a word you don't know, or used in a context you don't know. The whole concept of "learn
<euhmeuh> But I won't start a debate here, so I'll just shut up now :P
ym555 has joined #racket
vraid has quit [Quit: Leaving]
ym555_ has quit [Ping timeout: 272 seconds]
euhmeuh has left #racket [#racket]
zipper has quit [Ping timeout: 272 seconds]
urbanslug has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
dbmikus has joined #racket
casaca has joined #racket
badkins has joined #racket
ym555 has quit [Ping timeout: 248 seconds]
ym555 has joined #racket
dmiles has quit [Ping timeout: 245 seconds]
vraid has joined #racket
dmiles has joined #racket
orivej has joined #racket
urbanslug has quit [Ping timeout: 244 seconds]
urbanslug has joined #racket
dbmikus has quit [Ping timeout: 252 seconds]
<erkin> What's the recommended way to add a right click menu to a window?
<erkin> Extending window and overriding on-event to check for right click and spawning a popup-menu?
dbmikus has joined #racket
urbanslug has quit [Ping timeout: 258 seconds]
urbanslug has joined #racket
casaca has quit [Ping timeout: 248 seconds]
urbanslug has quit [Ping timeout: 245 seconds]
pera has joined #racket
casaca has joined #racket
aquiandres has joined #racket
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 246 seconds]
urbanslug has joined #racket
orivej has quit [Ping timeout: 272 seconds]
eponym has joined #racket
eponym has quit [Remote host closed the connection]
urbanslug has quit [Ping timeout: 246 seconds]
urbanslug has joined #racket
sauvin has quit [Ping timeout: 258 seconds]
badkins has quit [Ping timeout: 272 seconds]
casaca has quit [Quit: leaving]
ZombieChicken has joined #racket
casaca has joined #racket
casaca has quit [Client Quit]
casaca has joined #racket
ym555 has quit [Quit: leaving...]
jcowan has joined #racket
ym555 has joined #racket
selimcan has quit [Ping timeout: 245 seconds]
mSSM has joined #racket
soegaard has joined #racket
orivej has joined #racket
urbanslug has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
ubLX has quit [Quit: ubLX]
<urbanslug> Why contracts and not types?
urbanslug is now known as zipper
selimcan has joined #racket
efm has joined #racket
sleepnap has joined #racket
zipper has quit [Read error: Connection reset by peer]
zipper has joined #racket
<dzoe> You can use typed racker, if you will...
<dzoe> *racket
selimcan has quit [Remote host closed the connection]
Fernando-Basso has joined #racket
badkins has joined #racket
soegaard has quit [Quit: soegaard]
zipper has quit [Ping timeout: 246 seconds]
dharog has joined #racket
<jcowan> Contracts are more flexible.
soegaard has joined #racket
ym555 has quit [Ping timeout: 246 seconds]
dimitarvp has quit [Quit: Bye]
ym555 has joined #racket
ym555 has quit [Quit: leaving...]
ubLIX has joined #racket
soegaard has quit [Quit: soegaard]
sleepnap has quit [Quit: Leaving.]
Sgeo has joined #racket
lavaflow_ is now known as lavaflow
mSSM has quit [Ping timeout: 245 seconds]
cantstanya has quit [Ping timeout: 260 seconds]
cantstanya has joined #racket
jao has quit [Remote host closed the connection]
jao has joined #racket
<ZombieChicken> I have a text file (Alice in Wonderland from Project Gutenberg) that is UTF-8 with CRLF line endings. I've a function that reads the file in line-by-line and stores it in a gvector, then another that takes said gvector and writes the contents back to the disk. When testing it, I noticed a few things I'd like some help in understanding
<ZombieChicken> 1) The original file didn't include a BOM at the start of the file, but the attempted duplicate had one
<ZombieChicken> 2) The line endings where all changed from CRLF to LF. I'm on a Linux system
vraid has quit [Ping timeout: 252 seconds]
<lexi-lambda> ZombieChicken: A few things. First, Racket automatically converts between CRLF and LF depending on system type if you open files in text mode. If you want to preserve of the original file as possible and don’t want any automatic conversions, you need to open the files in binary mode.
<ZombieChicken> I was afraid that was the case
<ZombieChicken> Does it change line-endings on load or on write?
<ZombieChicken> s/on load/on read-in)
<lexi-lambda> Both.
<ZombieChicken> so I'd have to read in using binary, and write out using the same. Nice.
<lexi-lambda> Just open the file in binary mode. If you’re treating it like binary data, which you are, text mode isn’t appropriate.
aquiandres has quit [Ping timeout: 244 seconds]
<ZombieChicken> which is, imo, a little counterintuitive
<lexi-lambda> Maybe, but the whole point of text mode is that you want the runtime system to do some interpretation of the bytes on disk as text.
<lexi-lambda> Normally, that’s what you want. But if you want to do a byte-for-byte copy, you shouldn’t be using text mode, and in fact, you probably shouldn’t even be reading the file in “lines”.
<ZombieChicken> so replacing (read-line ...) with (read-bytes-line ...) should do it?
<lexi-lambda> Well, no. You need to open both the input and output files in binary mode, so you need to pass 'binary to open-input-file and output-output-file, or any of the procedures that wrap it.
<ZombieChicken> hmm
<lexi-lambda> But that will get you part of the way. The other problem is that read-line and read-bytes-line strip the newline character(s), and the newline procedure just writes LF.
<ZombieChicken> yeah
<lexi-lambda> This makes sense: by default, read-line interprets either LF or CRLF as a “line ending,” so the procedures are fundamentally lossy.
<ZombieChicken> looks like I'm oging to need (read-byte ...) and hope I can guess the line ending correctly
orivej has quit [Ping timeout: 244 seconds]
<lexi-lambda> You could keep using read-line, but pass 'linefeed as the second argument.
<ZombieChicken> then figure out how I'd rather store things. Given I'm planning on doing modification via gvector-delete and gvector-insert, I don't think the immutability of list would be a problem
<lexi-lambda> That way, it will only ever split on LF characters, and any CRs will still be in the read input.
orivej has joined #racket
<ZombieChicken> lexi-lambda: Doesn't Mac use CR as a line ending and thus that would break on those systems?