<lexi-lambda>
Mac OS 9 and below do, but Mac OS X/macOS just use LF, since they’re Unix.
<lexi-lambda>
Nobody uses OS 9 anymore, so you’re fine.
<ZombieChicken>
so now I can bitch at M$ for being the odd man out
<lexi-lambda>
But at this point, it’s true that you are sort of on your own: if you don’t want the runtime system to interpret what newlines mean, but you *also* want to read the file line by line, you realize you’re sort of asking for trouble!
<lexi-lambda>
Another thing you could do is read lines using regexes, which operate on ports, so you could implement a reasonably efficient version of read-line that stops on either LF or CRLF, but keeps the newline characters in the resulting string, so it isn’t lossy. But you’d still be stuck handling the meaning of them yourself.
<ZombieChicken>
well
<ZombieChicken>
on the bright side, I added 'linefeed to (in-lines ...) and it now is spitting out a perfectly fine clone of the read-in file (according to md5sum, anyways)
<ZombieChicken>
...and sha512
<lexi-lambda>
Why are you reading the file line-by-line if all you’re doing is a byte-for-byte copy, anyway?
<lexi-lambda>
Just use copy-file if all you want to do is copy it.
<ZombieChicken>
lexi-lambda: Wanting to make sure the read-in function and the write-out function didn't mangle things before I started into the rest of things
<ZombieChicken>
didn't make much sense to me to stumble blindly forward with everything else if I couldn't trust that things would read in properly, or write out properly
<lexi-lambda>
Fair enough.
<ZombieChicken>
interestingly enough, that also seems to have resolved my BOM problem
<ZombieChicken>
which is interesting
Sgeo_ has joined #racket
Sgeo has quit [Ping timeout: 252 seconds]
aquiandres has joined #racket
orivej has quit [Ping timeout: 252 seconds]
Fernando-Basso has quit [Remote host closed the connection]
lockywolf has joined #racket
q9929t has joined #racket
q9929t has quit [Quit: q9929t]
jao has quit [Ping timeout: 246 seconds]
dbmikus has quit [Quit: WeeChat 2.5]
sz0 has joined #racket
juanfra has quit [Read error: Connection reset by peer]
pera has quit [Quit: leaving]
dddddd has quit [Read error: Connection reset by peer]
lockywolf_ has joined #racket
lockywolf has quit [Read error: Connection reset by peer]
ubLIX has quit [Quit: ubLIX]
lockywolf_ has quit [Read error: Connection reset by peer]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
<greghendershott>
ZombieChicken: Oh you'd been talking about Emacs, then a "text editor", so then I thought you meant the line-ending problem was in Emacs. Ergo my "help".
<ZombieChicken>
greghendershott: Nah. Think Emacs fixed that kind of issue some time ago (now just need to get geiser to actually work).
<greghendershott>
But it is so much fun to read Emacs doc about "coding systems"! ;)
<ZombieChicken>
tbh
<ZombieChicken>
I'm hoping I'll get to a point I can ditch Emacs and start using real software
<clacke_movim>
like ed
<clacke_movim>
"ed is the standard text editor"
<ZombieChicken>
clacke_movim: tbh, I'm looking at a subset of ed's functionality
<ZombieChicken>
then build up some from there
<clacke_movim>
Hard core
<ZombieChicken>
right now there are 4 functions
<ZombieChicken>
read-in-file, write-out-file, delete-line, and insert-line
<ZombieChicken>
which is enough to do everything if your a masochist, or seriously limited in resources
<clacke_movim>
PicoLisp man regenaxer wrote "vip", a vi in PicoLisp
<ZombieChicken>
interesting
<ZombieChicken>
I'm really trying to avoid making any decisions wrt UIs atm
efm has quit [Ping timeout: 245 seconds]
<ZombieChicken>
"A complete text editor in less than 1000 lines of code" Yeah, that won't be happening here, I'm sure
efm has joined #racket
YuGiOhJCJ has joined #racket
Lowl3v3l has quit [Remote host closed the connection]
lavaflow_ has joined #racket
lavaflow has quit [Ping timeout: 245 seconds]
fauxm has quit [Quit: press f to pay respects]
lispmacs has joined #racket
<lispmacs>
hi, is it okay to use unsafe to call a C function which generates pthread threads? I can call all the other C functions, but this one always dies with a SIGSEGV. I'm wondering if perhaps it is because the C function uses pthreads and am thinking maybe this doesn't play well with Racket memory management or something
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
FreeFull has quit []
sauvin has joined #racket
johnjay has quit [Ping timeout: 245 seconds]
teardown has joined #racket
teardown_ has joined #racket
teardown is now known as Guest79354
teardown_ is now known as teardown
ZombieChicken has quit [Quit: WeeChat 2.5]
Guest79354 has quit [Quit: leaving]
aquiandres has quit [Ping timeout: 252 seconds]
aquiandres has joined #racket
endformationage has quit [Ping timeout: 258 seconds]
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
nolanv has quit [Read error: Connection reset by peer]
nolanv has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
notzmv has joined #racket
<lexi-lambda>
lispmacs: If the other threads don’t interact with Racket values in any way, it should be fine, but otherwise, it might not be.
zipper has joined #racket
dmiles has quit [Ping timeout: 268 seconds]
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
zipper has quit [Read error: Connection reset by peer]
zipper has joined #racket
dmiles has joined #racket
vraid has joined #racket
zipper has quit [Read error: Connection reset by peer]
zipper has joined #racket
mSSM has joined #racket
ShalokShalom has joined #racket
keep_learning_M has joined #racket
sagax has quit [Ping timeout: 245 seconds]
orivej has joined #racket
dmiles has quit [Ping timeout: 248 seconds]
sagax has joined #racket
dmiles has joined #racket
zipper has quit [Ping timeout: 252 seconds]
zipper has joined #racket
ZombieChicken has joined #racket
zipper has quit [Ping timeout: 258 seconds]
zipper has joined #racket
<zipper>
Are there docstrings for racket?
<ZombieChicken>
not natively
<ZombieChicken>
you could write a macro for that iirc, but most/all documentation is via Scribble
zipper has quit [Ping timeout: 272 seconds]
zipper has joined #racket
fridim has quit [Ping timeout: 268 seconds]
FreeFull has joined #racket
iyzsong has joined #racket
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
jao has joined #racket
ubLIX has joined #racket
<zipper>
ZombieChicken: I have to have those scribble docs in a scribble file, right?
<zipper>
not an rkt?
dddddd has joined #racket
aquiandres has quit [Ping timeout: 252 seconds]
<dzoe>
You can do that in .rkt
<dzoe>
See scribble/srcdoc and #lang at-exp racket
<dzoe>
It works for mostly everything except for classes.
<dzoe>
You can also look at McFly (by Neal)
<dzoe>
I stick to scribble/srcdoc for modules and some .scrbl file to put it all together for the whole project usually.
urbanslug has joined #racket
zipper has quit [Ping timeout: 272 seconds]
davidl has joined #racket
* ZombieChicken
just uses scribble/lp2
orivej has quit [Ping timeout: 245 seconds]
lispmacs has quit [Quit: rcirc on GNU Emacs 25.1.1]
urbanslug has quit [Ping timeout: 244 seconds]
kori has joined #racket
moldybits has quit [Quit: WeeChat 2.4]
urbanslug has joined #racket
Fernando-Basso has joined #racket
urbanslug has quit [Ping timeout: 268 seconds]
urbanslug has joined #racket
juanfra has joined #racket
soegaard has joined #racket
urbanslug has quit [Ping timeout: 245 seconds]
vraid has quit [Quit: Leaving]
soegaard has quit [Quit: soegaard]
manualcrank has joined #racket
ziyourenxiang has joined #racket
endformationage has joined #racket
notzmv has quit [Read error: Connection reset by peer]
iyzsong has quit [Ping timeout: 258 seconds]
davidl has quit [Quit: WeeChat 2.1]
edoput has joined #racket
Lowl3v3l has joined #racket
pie_ has quit [Ping timeout: 268 seconds]
davidl has joined #racket
johnjay has joined #racket
Fernando-Basso has quit [Remote host closed the connection]
edoput has left #racket [#racket]
ziyourenxiang has quit [Ping timeout: 244 seconds]
mSSM has quit [Ping timeout: 252 seconds]
moldybits has joined #racket
evdubs_ has quit [Ping timeout: 250 seconds]
casaca has quit [Ping timeout: 245 seconds]
casaca has joined #racket
englishm has quit [Excess Flood]
englishm has joined #racket
casaca has quit [Ping timeout: 272 seconds]
casaca has joined #racket
orivej has joined #racket
casaca has quit [Ping timeout: 268 seconds]
pera has joined #racket
casaca has joined #racket
_whitelogger has joined #racket
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
pera has quit [Quit: leaving]
casaca has quit [Ping timeout: 272 seconds]
casaca has joined #racket
pera has joined #racket
dddddd has quit [Remote host closed the connection]
dddddd has joined #racket
casaca has quit [Ping timeout: 252 seconds]
casaca has joined #racket
casaca has quit [Ping timeout: 248 seconds]
casaca has joined #racket
selimcan has joined #racket
efm has quit [Ping timeout: 258 seconds]
sauvin has quit [Ping timeout: 258 seconds]
selimcan has quit [Remote host closed the connection]
ZombieChicken has quit [Quit: WeeChat 2.5]
jao has quit [Ping timeout: 272 seconds]
ubLIX has quit [Quit: ubLIX]
casaca has quit [Ping timeout: 245 seconds]
casaca has joined #racket
aquiandres has joined #racket
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
ermo_ has joined #racket
ermo has quit [Ping timeout: 248 seconds]
ermo_ is now known as ermo
pie_ has quit [Ping timeout: 268 seconds]
selimcan has joined #racket
jao has joined #racket
pie_ has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
soegaard has joined #racket
casaca has quit [Ping timeout: 245 seconds]
casaca has joined #racket
casaca has quit [Ping timeout: 244 seconds]
casaca has joined #racket
dharog has quit [Ping timeout: 252 seconds]
selimcan has quit [Ping timeout: 245 seconds]
dharog has joined #racket
john2x has joined #racket
dharog has quit [Ping timeout: 258 seconds]
mSSM has joined #racket
aquiandres has quit [Ping timeout: 272 seconds]
Lowl3v3l has quit [Ping timeout: 245 seconds]
pie_ has quit [Ping timeout: 244 seconds]
cpach has quit [Ping timeout: 244 seconds]
sagax has quit [Write error: Connection reset by peer]