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
lbeckman314 has quit [Ping timeout: 260 seconds]
libertyprime has joined #racket
TCZ has quit [Quit: Leaving]
efm has quit [Ping timeout: 264 seconds]
efm has joined #racket
SGASAU has joined #racket
pilne has quit [Quit: First shalt thou take out the Holy Pin. Then, shalt thou count to three. No more. No less.]
KindTwo has joined #racket
KindOne has quit [Ping timeout: 272 seconds]
rmnull has joined #racket
KindTwo is now known as KindOne
KindTwo has joined #racket
KindOne has quit [Ping timeout: 246 seconds]
KindTwo is now known as KindOne
KindTwo has joined #racket
KindOne has quit [Ping timeout: 272 seconds]
KindTwo is now known as KindOne
aidalgol has joined #racket
aidalgol has quit [Client Quit]
shuwan4games has joined #racket
shuwan4games has left #racket ["ERC (IRC client for Emacs 26.3)"]
endformationage has quit [Quit: WeeChat 2.6]
remexre has quit [Quit: WeeChat 2.7.1]
narimiran has joined #racket
srandon111 has joined #racket
aidalgol has joined #racket
rgherdt has joined #racket
mbrndtgn has joined #racket
DGASAU has joined #racket
DGASAU has quit [Remote host closed the connection]
rmnull has quit [Read error: Connection reset by peer]
DGASAU has joined #racket
tilpner has quit [Read error: Connection reset by peer]
tilpner has joined #racket
dddddd has quit [Ping timeout: 260 seconds]
narimiran has quit [Read error: Connection reset by peer]
narimiran_ has joined #racket
narimiran_ is now known as narimiran
libertyprime has quit [Ping timeout: 260 seconds]
libertyprime has joined #racket
srandon111 has quit [Quit: leaving]
srandon111 has joined #racket
Sgeo has quit [Read error: Connection reset by peer]
nullcone has quit [Quit: Connection closed for inactivity]
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #racket
bonz060 has joined #racket
<bonz060> Hi.
<bonz060> I'm writing a wrapper around a CLI tool, `twint`, and the results of that is a bunch of tweets outputted on STDIN.
<bonz060> In racket, How do I store the output of a command that's run using `system`?
<bonz060> Hi.
<bonz060> In racket, How do I store the output of a command that's run using `system`?
<bonz060> I'm writing a wrapper around a CLI tool, `twint`, and the results of that is a bunch of tweets outputted on STDIN.
<bonz060> Hi.
<bonz060> Hi.
<bonz060> In racket, How do I store the output of a command that's run using `system`?
<bonz060> I'm writing a wrapper around a CLI tool, `twint`, and the results of that is a bunch of tweets outputted on STDIN.
<bonz060> In racket, How do I store the output of a command that's run using `system`?
<bonz060> I'm writing a wrapper around a CLI tool, `twint`, and the results of that is a bunch of tweets outputted on STDIN.
<bonz060> Sorry if my message comes off as duplicated :(
lavaflow has quit [Ping timeout: 256 seconds]
lavaflow has joined #racket
<rgherdt> did you try with-output-to-string as described in the docs?
<rgherdt> https://docs.racket-lang.org/reference/subprocess.html?q=system#%28def._%28%28lib._racket%2Fsystem..rkt%29._system%29%29
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #racket
libertyprime has quit [Read error: No route to host]
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #racket
iyzsong has joined #racket
TCZ has joined #racket
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
acarrico has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #racket
efm has quit [Quit: Konversation terminated!]
SGASAU has quit [Remote host closed the connection]
dddddd has joined #racket
Oxyd has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #racket
Oxyd has joined #racket
acarrico has joined #racket
orivej_ has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Leaving]
orivej has joined #racket
xgqt has joined #racket
<xgqt> Hello!
<bremner> o/
<xgqt> I'm just getting into racket and I wanted to install some pkgs to play around
<xgqt> i have a weird sqlite after the installation
<xgqt> raco setup: 1 skipping: <pkgs>/racket-index/scribblings/main/search.scrbl
<xgqt> raco setup: docs failure: query-exec: unable to open the database file
<xgqt> error code: 14
<xgqt> SQL: "ATTACH $1 AS other"
<xgqt> database: #<path:/home/xy/.racket/7.7/doc/docindex.sqlite>
<xgqt> mode: 'read-only
<xgqt> file permissions: (write read)
<xgqt> raco setup: --- installing collections --- [15:44:03]
<xgqt> raco setup: --- post-installing collections --- [15:44:03]
<xgqt> raco pkg install: packages installed, although setup reported errors
<xgqt> anybody could help with that?
cantstanya has quit [Remote host closed the connection]
<bremner> did you maybe install as root?
<bremner> have a look at the file owner permissions for the mentioned database
<xgqt> racket or the pkg?
<bremner> racket
cantstanya has joined #racket
<xgqt> I have racket installed globally (built from source on Gentoo)
<bremner> raco pkg install should certainly work as a non-root user
<bremner> and what is the owner/permission on that file?
<xgqt> the pkg works but i get this DB error
<xgqt> 644 xy:xy (my user)
Lowl3v3l has quit [Remote host closed the connection]
<xgqt> bremner: i get this error in almost all versions
<xgqt> i tried 7.0 (Gentoo's stable), 7.3 (unstable) and now i'm on 7.7 (selfmade ebuild)
iyzsong has quit [Quit: ZNC 1.8.0 - https://znc.in]
<bremner> hmm. OK I don't know. Maybe someone more knowledgeable about raco pkg will chime in if you wait
<xgqt> sure
<xgqt> is lisp community pushing heroku?
<xgqt> i see it in racket i see it in Mezzano
<bremner> I haven't heard of heroku in a lisp context before.
xgqt has quit [Ping timeout: 260 seconds]
xgqt has joined #racket
<xgqt> that was a bad idea to ask it now; just got poer outage'd (storm)
rgherdt has quit [Ping timeout: 272 seconds]
rgherdt has joined #racket
Sgeo has joined #racket
shuwan4games has joined #racket
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #racket
5EXAAFRTG is now known as ober
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
nullcone has joined #racket
KindOne has quit [Read error: Connection reset by peer]
KindTwo has joined #racket
ober has quit [Remote host closed the connection]
KindTwo is now known as KindOne
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
shuwan4games has left #racket ["ERC (IRC client for Emacs 26.3)"]
<xgqt> did I miss something (anybody found a solution to my problem)?
<bremner> nope
<samth> xgqt: who owns that sqlite file?
<xgqt> my user
<xgqt> 644 xy:xy
<xgqt> i can attach the DB with sqlitebrowser
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #racket
<samth> what happens if you re-run `raco setup`?
<xgqt> samth: excuse me, but with what parameters?
<samth> none
<xgqt> raco setup: deleting: launcher <console-bin>/mztext
<xgqt> delete-file: cannot delete file
<xgqt> path: /usr/bin/mztext
<xgqt> system error: Permission denied; errno=13
<xgqt> this is legit, because that's installed system-wide
<samth> xgqt: try `raco setup --avoid-main`
<xgqt> raco setup: docs failure: file-or-directory-permissions: access failed
<xgqt> path: /usr/share/doc/racket-7.7/docindex.sqlite
<xgqt> system error: No such file or directory; errno=2
<xgqt> this is the only error i get in that case
<samth> does that file exist?
<xgqt> the ebuild installs it compressed; im gonna uncompress it
<xgqt> samth: ok, now i dont get any errors, just 2 warnings from rash and shell-pipeline
TCZ has joined #racket
<xgqt> hm, i guess it somehow needed that DB that was installed alongside docs :/
orivej has quit [Ping timeout: 256 seconds]
<xgqt> samth, bremner: thanks a lot :D
<samth> No problem
orivej has joined #racket
<xgqt> do you know if racket needs pango & cairo at build/run time? (i'm interested in the case if i'm not building racket worh X(gtk) support)
rgherdt has quit [Ping timeout: 272 seconds]
srandon111 has quit [Ping timeout: 260 seconds]
srandon111 has joined #racket
<samth> xgqt: it's needed if you want to do any graphics rendering/printing/etc
orivej has quit [Ping timeout: 246 seconds]
<xgqt> samth: only in that case?
<samth> right
<xgqt> hmm i'm wondering which use flag would amke sense to enable those features
<xgqt> im revisinting a racket ebuild script for Gentoo
<xgqt> samth: what would you call those functions? gui? image?
<samth> graphics, probably
<samth> drawing?
<samth> racket/draw, racket/gui, drracket, slideshow are some of the libraries that would be omitted
<xgqt> i guess "graphics" fits
rgherdt has joined #racket
<xgqt> gfx is a bit too far, is it?
srandon111 has quit [Ping timeout: 246 seconds]
KindTwo has joined #racket
KindOne has quit [Ping timeout: 272 seconds]
KindTwo is now known as KindOne
remexre has joined #racket
m455 has joined #racket
<m455> I don't know why i didn't join #racket sooner lol
hugo has joined #racket
aidalgol has quit [Remote host closed the connection]
sauvin has quit [Read error: Connection reset by peer]
<hugo> Could someone help me a bit with typed racket? I'm trying to create a function which create matrices, but fail on the return type. http://pasterack.org/pastes/31619
<samth> the problem is that if you don't give an initial value for `make-vector` it uses 0 doesn't have the right type
<hugo> samth: Thanks!
<hugo> Is there a reason that racket can't deduce the type in your example? And why it's not possible to go from (Vectorof Any) to (Vectorof (Vectorof A)) with a cast?
<samth> the reason the type annotation is needed in my example is because `make-vector` produces a `(Vectorof a)` not a `Mutable-Vectorof`. (that's for historical reasons)
<samth> the reason the cast doesn't work is because you can't cast to the type `A` since we don't know what it is -- it's a type variable
<hugo> Is that what racket means with free variable in this context? That we don't yet know the type of A?
<samth> it means that A is a free variable of the type you are casting to
pilne has joined #racket
Codaraxis has joined #racket
TCZ has quit [Quit: Leaving]
<bonz060> :rgherdt Thanks! I got around to doing that and it worked.
TCZ has joined #racket
saladus has joined #racket
<rgherdt> you're welcome
saladus has quit [Ping timeout: 272 seconds]
emacsomancer has quit [Ping timeout: 256 seconds]
emacsomancer has joined #racket
<dzoe> Typed Racket ... when I tried it (again) a few weeks ago, it still feels slow.
<dzoe> But in my case, it is a lots of fixnums and flonums generally.
<dzoe> Let's see if I can come up with a decent alternative for these scenarios.
<dzoe> Right now I am playing with making something like type annotations being part of the identifier and choosing the right procedures at syntax stage based on those.
<dzoe> Also the matrix module's performance is terrible when compared to custom code. And I think it is possible to improve that generally - not only for specific cases.
<dzoe> It's on my list ...
aidalgol has joined #racket
narimiran has quit [Ping timeout: 260 seconds]
nullcone has quit [Quit: Connection closed for inactivity]
nullcone has joined #racket
SGASAU has joined #racket
rgherdt has quit [Ping timeout: 272 seconds]
vraid has joined #racket
notnotdan has quit [Ping timeout: 256 seconds]
notnotdan has joined #racket
mzan has quit [Ping timeout: 260 seconds]
mzan has joined #racket
TCZ has quit [Ping timeout: 260 seconds]
pilne has quit [Ping timeout: 256 seconds]
mzan has quit [Ping timeout: 240 seconds]
Codaraxis_ has joined #racket
mzan has joined #racket
Codaraxis has quit [Ping timeout: 264 seconds]
orivej has joined #racket