ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
notzmv has quit [Ping timeout: 260 seconds]
notzmv has joined #crystal-lang
notzmv has quit [Ping timeout: 240 seconds]
notzmv has joined #crystal-lang
notzmv has quit [Remote host closed the connection]
notzmv has joined #crystal-lang
notzmv has quit [Ping timeout: 240 seconds]
<FromGitter> <mixflame> How do I remove the dependency on Sqlite from the amber crystal heroku build?
notzmv has joined #crystal-lang
f1refly has quit [Read error: Connection reset by peer]
f1refly has joined #crystal-lang
jmdaemon has quit [Ping timeout: 240 seconds]
Sankalp has quit [Ping timeout: 272 seconds]
Sankalp has joined #crystal-lang
ur5us has joined #crystal-lang
Sankalp has quit [Ping timeout: 272 seconds]
ua_ has quit [Quit: Leaving]
ua_ has joined #crystal-lang
notzmv has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 250 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 250 seconds]
ua_ has quit [Ping timeout: 276 seconds]
ua_ has joined #crystal-lang
ua__ has joined #crystal-lang
ua_ has quit [Ping timeout: 256 seconds]
<FromGitter> <Blacksmoke16> `sqlite` is a dep of the framework itself, (and so are the other two drivers for some reason?) so in short i dont think you can
<FromGitter> <Blacksmoke16> related: https://github.com/amberframework/amber/issues/1277
notzmv has joined #crystal-lang
ua__ has quit [Ping timeout: 240 seconds]
ua__ has joined #crystal-lang
notzmv has quit [Ping timeout: 256 seconds]
ua__ has quit [Ping timeout: 272 seconds]
notzmv has joined #crystal-lang
sorcus has quit [Quit: WeeChat 3.5]
notzmv has quit [Ping timeout: 260 seconds]
dukester has joined #crystal-lang
<dukester> Noob here! Just installed crystal. created hello/cr for 45bytes. ran crystal build hello.cr and got hello for 1745560bytes
<dukester> Why so huge? Can it be trimmed down?
<FromGitter> <Blacksmoke16> add `--no-debug`
<FromGitter> <Blacksmoke16> tl;dr its the stdlib
<dukester> ok will do l8r
<FromGitter> <Blacksmoke16> you can override what is required by default, but its not really designed to be piecemilled
<FromGitter> <Blacksmoke16> as there are a lot of interdependencies
<dukester> re-compiled! now 1441272bytes. better but not great.
<FromGitter> <Blacksmoke16> :shrug: is what it is. its not really that big either
<dukester> ok thanks!
jmdaemon has joined #crystal-lang
dukester has left #crystal-lang [Leaving]
dukester has joined #crystal-lang
<dukester> re-compiled hello.cr and used --release --no-debug. trimmed hello to 491960. Much better! I may like this lang after all. :)
<FromGitter> <Blacksmoke16> could prob get a bit more via `strip ./hello`
<FromGitter> <Blacksmoke16> but yea, as called out in that thread, its not really a big deal the majority of the time
<dukester> I'll try it.
<dukester> after strip = 426264. I'm happy. Thx ...
<FromGitter> <Blacksmoke16> 👍
<dukester> l8r
dukester has left #crystal-lang [Leaving]
ua_ has joined #crystal-lang
f1refly has quit [Quit: see ya in hell]
f1refly has joined #crystal-lang
dukester has joined #crystal-lang
<dukester> does crystal have cgi or fastcgi support? Can't find anything relevant in the APIs
notzmv has joined #crystal-lang
dukester has quit [Ping timeout: 260 seconds]
<FromGitter> <oprypin:matrix.org> dukester, no it doesn't have support. people like to run the server directly from Crystal, possibly behind a reverse proxy
<FromGitter> <oprypin:matrix.org> but of course, cgi just means writing stuff to stdout, which you certainly can do
dukester has joined #crystal-lang
<dukester> does crystal have cgi or fastcgi support? Can't find anything relevant in the APIs
<SamantazFox> dukester: There is no native (stdlib) support for CGI, but you can use this shard: https://github.com/blazerw/fcgi
<SamantazFox> (note: I haven't tested it)
dmgk has joined #crystal-lang
<FromGitter> <Blacksmoke16> prob not even worth using over a normal server
<dukester> SamantazFox, a shard is good! :) Thx I'll check it out.
<dukester> Blacksmoke16, I'm used to using Apache, etc. Are you talking about a crystal-built web server?
ur5us has joined #crystal-lang
<FromGitter> <Blacksmoke16> yes, the one from the stdlib. Can still use apache, just reverse proxy the request to the crystal server
<FromGitter> <Blacksmoke16> tho depending on what you're wanting to do exactly, a framework may be better suited than the raw server
<dukester> Not a big framework fan! I like to handcraft my web stuff. uts down on bloat. Yes I could reverse proxy!
<FromGitter> <Blacksmoke16> Sure but then you'll end up essentially making your own framework
<FromGitter> <Blacksmoke16> Main catch is the stdlib lacks a router, but could use a shard for that and do the rest if you really wanted
<dukester> Got it! Thx
dukester has left #crystal-lang [Leaving]
analogsalad has joined #crystal-lang
analogsalad has quit [Quit: bye]
f1refly has quit [Ping timeout: 272 seconds]
f1refly has joined #crystal-lang