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
efm has quit [Ping timeout: 245 seconds]
diip has quit [Ping timeout: 272 seconds]
lavaflow has joined #racket
efm has joined #racket
efm has quit [Ping timeout: 268 seconds]
libertyprime has joined #racket
Jeanne-Kamikaze has quit [Quit: Leaving]
orivej has joined #racket
lavaflow has quit [Ping timeout: 268 seconds]
keep_learning_M has quit [Quit: This computer has gone to sleep]
keep_learning_M has joined #racket
lispmacs has joined #racket
<lispmacs> if I create an enum type with '_enum, can I pull out the values of the symbols again (say for comparison)?
<lispmacs> like, (_enum '(OK = 0 FAIL = 1)) then (= OK (_somefunc))
ym555_ has joined #racket
ym555_ has quit [Client Quit]
ym555 has quit [Ping timeout: 245 seconds]
<greghendershott> lispmacs: I don't think so. I think it only means you could use 'OK when calling an FFI wrapper declared to take an argument of that _enum type.
<greghendershott> but I haven't worked much with FFI lately (or really that much, ever)
evdubs has quit [Ping timeout: 248 seconds]
evdubs has joined #racket
lavaflow has joined #racket
<lispmacs> greghendershott: i have a C library that has functions that returns values of an enum type, so I was just wondering how to compare. I guess I could also define similar normal symbols that match those numbers value
<lispmacs> or, maybe I could define those values anyway? despite being _enum'd, though don't seem to have a value attached to the symbols themselves
iyzsong has joined #racket
lavaflow has quit [Ping timeout: 272 seconds]
<greghendershott> That seems reasonable to just make a normal define for each.
<greghendershott> There might be more _enum examples here: https://github.com/racket/racket/tree/master/pkgs/racket-doc/ffi/examples
lavaflow has joined #racket
iyzsong has quit [Ping timeout: 258 seconds]
lavaflow has quit [Ping timeout: 248 seconds]
libertyprime has quit [Ping timeout: 245 seconds]
Jeanne-Kamikaze has joined #racket
<danderson> Thanks for helping me debug! I was about to ask in total confusion why my lexer wasn't matching my test input, and in the process of putting together the paste, figured it out.
<danderson> (turns out ' isn't an alphabetic character, who knew)
libertyprime has joined #racket
FreeFull has quit []
jao has quit [Ping timeout: 258 seconds]
Jeanne-Kamikaze has quit [Quit: Leaving]
vraid has quit [Ping timeout: 252 seconds]
endformationage has quit [Quit: WeeChat 2.4]
selimcan has joined #racket
dieggsy has quit [Quit: ZNC 1.7.3 - https://znc.in]
Arcaelyx has quit [Ping timeout: 252 seconds]
dieggsy has joined #racket
keep_learning_M has quit [Quit: This computer has gone to sleep]
moldybits has quit [Quit: WeeChat 2.4]
moldybits has joined #racket
lispmacs has quit [Remote host closed the connection]
iyzsong has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
manualcrank has joined #racket
YuGiOhJCJ has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
lockywolf has joined #racket
soegaard has joined #racket
ubLIX has joined #racket
cpach has joined #racket
mSSM has quit [Ping timeout: 244 seconds]
clacke_movim has left #racket [#racket]
clacke_movim has joined #racket
selimcan has quit [Remote host closed the connection]
dddddd has quit [Read error: Connection reset by peer]
ubLIX has quit [Quit: ubLIX]
selimcan has joined #racket
cpach has quit [Quit: Lost terminal]
lockywolf has quit [Ping timeout: 245 seconds]
<J_Arcane> Woo! Heresy now running on my PowerBook G4 in greghendershott's racket-mode
orivej has quit [Ping timeout: 272 seconds]
<soegaard> A PowerPc ?
<J_Arcane> Yep.
<soegaard> Missed the train on those.
<J_Arcane> Running 6.2.1 via Homebrew
<J_Arcane> it's ... not entirely without some ricketyness.
lockywolf has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 246 seconds]
_whitelogger has joined #racket
clacke_movim has left #racket [#racket]
clacke_movim has joined #racket
<J_Arcane> Only the terminal version of Emacs works, and DrRacket won't work even if you install it, because missing dependencies
lockywolf_ has quit [Remote host closed the connection]
lockywolf_ has joined #racket
lockywolf_ has quit [Ping timeout: 272 seconds]
iyzsong has quit [Ping timeout: 252 seconds]
_whitelogger has joined #racket
selimcan has quit [Remote host closed the connection]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Fernando-Basso has joined #racket
ZombieChicken has quit [Quit: Have a nice day]
lavaflow has joined #racket
dimitarvp has joined #racket
dimitarvp has quit [Quit: Bye]
lavaflow has quit [Ping timeout: 268 seconds]
<J_Arcane> the bigger problem is I don't remember how to use emacs. XD
<bremner> that's what we call a "learning opportunity" ;)
<J_Arcane> also parinfer doesn't work which makes me sad. :(
<J_Arcane> I'm curious if I'd have better luck with the MacPorts packages, but I'd have to uninstall Tigerbrew to find out because apparently they do not get along.
<soegaard> J_Arcane: It's fun to get an old system alive again. I recently bought a "revival kit" for my old Amiga 500.
<J_Arcane> soegaard: Yah. I have a MiST FPGA in the other room setup as an A1200
<soegaard> An extension has slots for two compact flash cards, and the amiga thinkgs it is a harddisj.
<soegaard> The MIST/MISTer project is really nice.
<J_Arcane> yah, CF->IDE is how I went for the PowerBook's new hard drive.
<soegaard> Ironically I never used CF cards at the time they were current.
<J_Arcane> yeah. what I found frustrating is how expensive they are still
<soegaard> Yeah - I looked around for an sd card solution - but couldn't find any.
<J_Arcane> though apparently CF->SD adapter cards can work with the IDE adapters, so next time I go this route I might try that instead to save money on storage
<soegaard> Ooh! Is that a thing.
<J_Arcane> I also tried a couple SSD->IDE adapters, one m.2, one mSATA, but neither of them have worked in any machine I've tried.
<J_Arcane> Yeah. You can even get a CF adapter with two SD slots in it, though I'm not sure how those are seen by the system. XD
<soegaard> Hmm. They are even rather cheap.
lockywolf has joined #racket
davidl has quit [Ping timeout: 246 seconds]
FreeFull has joined #racket
davidl has joined #racket
davidl has quit [Client Quit]
jao has joined #racket
rubic has joined #racket
Arcaelyx has joined #racket
jao has quit [Remote host closed the connection]
efm has joined #racket
_whitelogger has joined #racket
soegaard has quit [Quit: soegaard]
Sgeo__ has quit [Read error: Connection reset by peer]
Sgeo__ has joined #racket
jao has joined #racket
Sgeo_ has joined #racket
lockywolf_ has joined #racket
Sgeo__ has quit [Ping timeout: 258 seconds]
lockywolf has quit [Ping timeout: 248 seconds]
lockywolf_ has quit [Remote host closed the connection]
lockywolf_ has joined #racket
soegaard has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 258 seconds]
q9929t has joined #racket
ricekrispie has joined #racket
ricekrispie2 has quit [Ping timeout: 258 seconds]
lockywolf_ has joined #racket
lockywolf__ has quit [Ping timeout: 258 seconds]
dddddd has quit [Read error: Connection reset by peer]
dddddd has joined #racket
Jeanne-Kamikaze has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 246 seconds]
Fernando-Basso has quit [Remote host closed the connection]
ubLIX has joined #racket
lockywolf__ has quit [Remote host closed the connection]
lockywolf__ has joined #racket
dmiles has quit [Read error: Connection reset by peer]
Fernando-Basso has joined #racket
lockywolf__ has quit [Ping timeout: 244 seconds]
soegaard has quit [Quit: soegaard]
soegaard has joined #racket
ubLXI has joined #racket
ubLIX has quit [Ping timeout: 244 seconds]
soegaard has quit [Quit: soegaard]
ubLXI is now known as ubLIX
ubLXI has joined #racket
orivej has joined #racket
ubLIX has quit [Ping timeout: 248 seconds]
endformationage has joined #racket
selimcan has joined #racket
dustyweb has quit [Remote host closed the connection]
soegaard has joined #racket
dustyweb has joined #racket
zipper has joined #racket
caltelt has joined #racket
ym555 has joined #racket
zipper has quit [Ping timeout: 258 seconds]
dustyweb has quit [Ping timeout: 248 seconds]
zipper has joined #racket
<danderson> Anyone know of good documentation to learn about writing contracts? The "Building new contracts" section in the guide makes no sense to me, and the reference makes even less sense :(
ZombieChicken has joined #racket
dustyweb has joined #racket
ZombieChicken has quit [Remote host closed the connection]
ZombieChicken has joined #racket
ZombieChicken has quit [Remote host closed the connection]
ZombieChicken has joined #racket
zipper has quit [Ping timeout: 272 seconds]
zipper has joined #racket
ZombieChicken has quit [Remote host closed the connection]
forgottenwizard has joined #racket
<s455wang> danderson: the "Building new contracts" section is about the internal physical representation of contracts
<s455wang> for actually writing contracts you should start with https://docs.racket-lang.org/guide/contract-func.html
<danderson> so, I've read through that. The piece I'm struggling with so far is how to add blame context and other useful information. I'm defining a contract for a somewhat intricate data structure, and would like to add useful signpost in violations.
<danderson> That "Building new contracts" section was the only one I found that dealt with handling blame
lavaflow has joined #racket
forgottenwizard has quit [Remote host closed the connection]
forgottenwizard has joined #racket
dan_f has joined #racket
caltelt_ has joined #racket
selimcan has quit [Remote host closed the connection]
forgottenwizard has quit [Remote host closed the connection]
forgottenwizard has joined #racket
mSSM has joined #racket
ubLXI has quit [Quit: *hides*]
zipper has quit [Ping timeout: 246 seconds]
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
zipper has joined #racket
<greghendershott> danderson: If you search for papers by Robby Findler about contracts you might find more help.
<greghendershott> Otherwise I'd suggest asking on the racket-users mailing list.
<greghendershott> (My own use of contracts has been fairly straightforward, and blame "just works". I haven't tried more "exotic" things.)
caltelt_ has quit [Remote host closed the connection]
caltelt_ has joined #racket
forgottenwizard has quit [Remote host closed the connection]
forgottenwizard has joined #racket
forgottenwizard is now known as ZombieChicek
ZombieChicek is now known as ZombieChicken
<danderson> got it, thanks!
<Jeanne-Kamikaze> Do you have anything resembling docstrings or do you "scribble" your modules?
<soegaard> There is no builtin support for docstrings.
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
<Jeanne-Kamikaze> I see, thanks.
zipper has quit [Ping timeout: 258 seconds]
ZombieChicken has quit [Remote host closed the connection]
ZombieChicken has joined #racket
ZombieChicken has quit [Remote host closed the connection]
notzmv has joined #racket
ZombieChicken has joined #racket
ZombieChicken has quit [Client Quit]
dmiles has joined #racket
clacke_movim has left #racket [#racket]
Fernando-Basso has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 258 seconds]
Jeanne-Kamikaze has quit [Quit: Leaving]
lavaflow has quit [Ping timeout: 272 seconds]
dan_f has quit [Quit: dan_f]
moldybits has quit [Quit: WeeChat 2.4]
Sgeo__ has joined #racket
Sgeo_ has quit [Ping timeout: 272 seconds]
mSSM has quit [Ping timeout: 245 seconds]
caltelt_ has quit [Remote host closed the connection]
caltelt_ has joined #racket
rubic has quit [Remote host closed the connection]
caltelt_ has quit [Ping timeout: 272 seconds]
lavaflow has joined #racket
selimcan has joined #racket
Jeanne-Kamikaze has joined #racket
soegaard has quit [Quit: soegaard]
selimcan has quit [Remote host closed the connection]
ym555 has quit [Quit: leaving...]