samth changed the topic of #racket to: Racket v7.7 has been released: https://blog.racket-lang.org/2020/05/racket-v7-7.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
catonano_ has joined #racket
catonano has quit [Ping timeout: 260 seconds]
catonano_ is now known as catonano
Ven`` has joined #racket
lockywolf__ has quit [Ping timeout: 246 seconds]
lockywolf has joined #racket
lockywolf has quit [Max SendQ exceeded]
selimcan has joined #racket
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vraid has quit [Ping timeout: 246 seconds]
chambln has joined #racket
<nisstyre> remexre: you can use this https://docs.racket-lang.org/inside/index.html
<nisstyre> remexre: but in my opinion it is much easier to use Guile's C API
<remexre> nisstyre: ah, didn't find that googling; thanks!
<nisstyre> I'm assuming you meant calling Racket code from C
<remexre> yep!
<nisstyre> if you find it to be too much then I highly recommend looking at Guile instead
<remexre> I'm interacting w/ a non-scheme racket lang, so I don't think guile's an option
<nisstyre> ok fair enough
<nisstyre> uh, I don't actually know how that'll work
<nisstyre> I guess the API will somehow let you set the language
<nisstyre> I'm assuming there's a way to have it load a file and then make the definitions available
<nisstyre> https://docs.racket-lang.org/inside/cs-start.html#%28part._cs-embedded-load%29
<nisstyre> this will probably work
<nisstyre> since it's already compiled code
<remexre> okay, I'll start there
<nisstyre> remexre: I think you will have to install racket from source to get the correct library installed
<nisstyre> depending on your OS
<nisstyre> e.g. I don't even have racketcs.h on my system
<nisstyre> since I don't have the CS backend
<nisstyre> (Chez Scheme)
<remexre> nisstyre: heh, I'm already on gentoo, so installing sources is theoretically just one addition to a config file
<nisstyre> you'll probably have to modify the emerge files or whatever it is you use
<nisstyre> this could definitely be made easier
ArneBab has joined #racket
<selimcan> schemers of the world, unite
jmiven has quit [Quit: bye]
jmiven has joined #racket
ArneBab has quit [Remote host closed the connection]
ArneBab has joined #racket
sauvin is now known as Daddy
Daddy is now known as Daddums
Daddums is now known as Sauvin
efm has quit [Read error: Connection reset by peer]
efm has joined #racket
selimcan has quit [Quit: Leaving]
dddddd has quit [Ping timeout: 264 seconds]
Sgeo has quit [Read error: Connection reset by peer]
narimiran has joined #racket
endformationage has quit [Quit: WeeChat 2.6]
lavaflow has quit [Ping timeout: 256 seconds]
ArneBab has quit [Read error: Connection reset by peer]
lavaflow has joined #racket
catonano has quit [Quit: catonano]
nullman has quit [Remote host closed the connection]
nullman has joined #racket
aeth has quit [Read error: Connection reset by peer]
aeth has joined #racket
Sgeo has joined #racket
_whitelogger has joined #racket
orivej has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
libertyprime has quit [Ping timeout: 256 seconds]
fanta1 has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
zenspider has joined #racket
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
pilne has quit [Quit: Me fail English? That's unpossible.]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #racket
Sgeo has quit [Read error: Connection reset by peer]
TCZ has joined #racket
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
rgherdt has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
cbarrett has quit [Ping timeout: 252 seconds]
cbarrett has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
libertyprime has joined #racket
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #racket
ArneBab has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 272 seconds]
ArneBab has quit [Remote host closed the connection]
aidalgol has quit [Read error: Connection reset by peer]
libertyprime has quit [Ping timeout: 264 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
ArneBab_ has joined #racket
TCZ has quit [Quit: Leaving]
ArneBab_ has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 180 seconds.]
doyougnu has joined #racket
orivej has joined #racket
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #racket
doyougnu has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #racket
doyougnu has joined #racket
doyougnu has left #racket [#racket]
doyougnu has joined #racket
doyougnu has quit [Client Quit]
doyougnu has joined #racket
Ven`` has joined #racket
doyougnu has quit [Quit: ERC (IRC client for Emacs 26.3)]
doyougnu has joined #racket
doyougnu has quit [Client Quit]
true-grue has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
doyougnu has joined #racket
orivej has joined #racket
ArneBab_ has joined #racket
orivej has quit [Ping timeout: 260 seconds]
ArneBab_ has quit [Client Quit]
orivej has joined #racket
libertyprime has joined #racket
Ven`` has quit [Read error: Connection reset by peer]
dddddd has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
iyzsong has joined #racket
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #racket
libertyprime has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 256 seconds]
catonano has joined #racket
orivej has joined #racket
lockywolf has joined #racket
lockywolf has quit [Max SendQ exceeded]
lockywolf has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 240 seconds]
fanta1 has quit [Quit: fanta1]
catonano has quit [Ping timeout: 265 seconds]
catonano has joined #racket
rmnull has quit [Read error: Connection reset by peer]
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 258 seconds]
lockywolf__ has quit [Ping timeout: 260 seconds]
TCZ has joined #racket
_whitelogger has joined #racket
doyougnu has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #racket
lockywolf has joined #racket
fanta1 has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<samth> nisstyre: are you using the CS variant? if so, I think these functions are the easiest way: https://docs.racket-lang.org/inside/cs-eval.html
<samth> basically, just construct an s-exp for a module path and then hand it to `racket_dynamic_require`
<samth> there's an example of doing it here: https://docs.racket-lang.org/inside/cs-embedding.html
rgherdt has quit [Quit: Leaving]
fanta1 has quit [Quit: fanta1]
chambln has quit [Remote host closed the connection]
lockywolf_ has joined #racket
lockywolf_ has quit [Remote host closed the connection]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf has quit [Ping timeout: 260 seconds]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
<dzoe> Not dynamic require again ...
lockywolf_ has quit [Max SendQ exceeded]
<dzoe> I've spent quite some hours getting gui-dynamic-require orchestrated with dynamic-require do what I need this Sunday.
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
<dzoe> Especially deriving classes from dynamically required superclasses - although super easy in principle - turned to be a nightmare.
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
<samth> dzoe: how so?
<dzoe> I'd say lack of documentation.
lockywolf_ has joined #racket
lockywolf_ has quit [Max SendQ exceeded]
<dzoe> https://docs.racket-lang.org/gui/Dynamic_Loading.html - can you tell, how do you get (gui-available?) return #t and (gui-dynamic-require 'frame%) return actual frame% class ... dynamically?
<dzoe> That is without (require racket/gui/base) first.
lockywolf_ has joined #racket
<dzoe> Unless you already needed that before, the answer is super easy and absolutely non-obvious and definitely nowhere written. Of course, for the definition of "nowhere" as "not where I can find it" :)
lockywolf_ has quit [Max SendQ exceeded]
<dzoe> But given how deep I usually dig in the Racket sources, it is a surprise something like this takes me surprise ...
phoe has joined #racket
lockywolf_ has joined #racket
<samth> the answer is that you have to `(dynamic-require 'racket/gui/base #f)`, right?
<samth> but you should add an example to the docs!
<samth> :)
lockywolf_ has quit [Max SendQ exceeded]
lockywolf_ has joined #racket
<phoe> hey! I have a question related to racket/gui - how is it implemented under the hood? does it utilize Qt or Gtk for cross-platformness or does it use some kind of per-OS bindings itself?
<phoe> if I understand correctly, the answers to that are somewhere in https://github.com/racket/gui/tree/master/gui-lib - I'll need some pointers where exactly to look for them though
lockywolf_ has quit [Max SendQ exceeded]
<samth> phoe: on Linux, it uses Gtk, on Windows and Mac it uses the native GUI libraries
lockywolf_ has joined #racket
<phoe> samth: thanks. Where in the code should I look for them?
<phoe> thanks!
* phoe takes a dive
<samth> i often find it's more helpful to look at a recent commit to get a sense of how things fit together, such as https://github.com/racket/gui/commit/70c318b2fd5c57d534fdb4b7f5fe3696523e6c2a
rmnull has joined #racket
rgherdt has joined #racket
<dzoe> samth: Correct :)
<dzoe> I will submit a patch.
<samth> :)
tautologico has joined #racket
orivej_ has quit [Ping timeout: 265 seconds]
orivej has joined #racket
rmnull has quit [Read error: Connection reset by peer]
rmnull1 has joined #racket
rmnull1 has quit [Quit: WeeChat 2.8]
rmnull has joined #racket
rmnull has quit [Read error: Connection reset by peer]
notzmv has quit [Remote host closed the connection]
notzmv has joined #racket
rmnull has joined #racket
TCZ has quit [Quit: Leaving]
endformationage has joined #racket
vraid has joined #racket
orivej_ has joined #racket
orivej has quit [Read error: Connection reset by peer]
phoe has left #racket [#racket]
lavaflow has quit [Quit: WeeChat 2.8]
lavaflow has joined #racket
pilne has joined #racket
orivej has joined #racket
orivej_ has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
narimiran has quit [Quit: leaving]
orivej_ has joined #racket
orivej has quit [Ping timeout: 260 seconds]
narimiran has joined #racket
<dzoe> samth: I think, that I'll just add some description and sample code to gui-dynamic-require scribbling, right?
<dzoe> Technically the module bindings need to be required, but the module itself must not be instantiated.
ohama has quit [Ping timeout: 256 seconds]
ohama has joined #racket
orivej_ has quit [Ping timeout: 258 seconds]
orivej has joined #racket
Sauvin has quit [Read error: Connection reset by peer]
lockywolf has joined #racket
lockywolf_ has quit [Ping timeout: 244 seconds]
tlcu has joined #racket
tlcu has quit [Client Quit]
<samth> dzoe: sounds good
cantstanya has quit [Remote host closed the connection]
<dzoe> mkay
<dzoe> But goraud shading first :)
<dzoe> I really need some procrastination
<dzoe> It doesn't stop giving surprises :)
<dzoe> ARGB blending... 3m: 133Mpps, CS: 78Mpps
<dzoe> RGB lighting... 3m: 61Mpps, CS: 81Mpps
<dzoe> What the heck? Both operations are a few bitshifts and some iors (and a lookup table, of course).
<dzoe> Ok, but when mixing lookup and fixnum multiplications, I can implement ARGB blending in CS with >200Mpps
TCZ has joined #racket
efm has quit [Ping timeout: 265 seconds]
narimiran has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #racket
TCZ has quit [Quit: Leaving]
TCZ has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 272 seconds]
TCZ has quit [Quit: Leaving]
rgherdt has quit [Ping timeout: 265 seconds]
TCZ has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 260 seconds]
true-grue has quit [Read error: Connection reset by peer]
TCZ has quit [Quit: Leaving]
TCZ has joined #racket
lockywolf_ has quit [Ping timeout: 260 seconds]
lockywolf has joined #racket