RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.26.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
sevensidedmarble has joined #crystal-lang
zorp_ has quit [Ping timeout: 240 seconds]
<FromGitter> <girng> tmw when you type crystal code in godot editor LOL ⏎ ((https://i.gyazo.com/b4e35c9f38e76332d7cfdf37b32a3db4.png))
<FromGitter> <girng> i'm supposed to use `print` lol
maxpowa has quit [Ping timeout: 252 seconds]
<FromGitter> <Blacksmoke16> add an override ;)
maxpowa has joined #crystal-lang
<FromGitter> <girng> @Blacksmoke16 want to lend a hand (https://github.com/godotengine/godot/blob/master/modules/gdscript/gdscript_tokenizer.cpp)? hahah
sevensidedmarble has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
rohitpaulk has joined #crystal-lang
<FromGitter> <Blacksmoke16> :P
rohitpaulk has quit [Ping timeout: 272 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
<FromGitter> <Blacksmoke16> is there something in the stdlib to encrypt something with a key and decrypt it later with the same key?
<FromGitter> <Blacksmoke16> that isnt bcrypt
<FromGitter> <aisrael> Like `Crypto::Blowfish`?
<FromGitter> <aisrael> (Not that I know how to use it—the docs are... 'sparse'.)
<FromGitter> <Blacksmoke16> i dont think so? seems the params are both limited to unsigned Int32s?
<FromGitter> <aisrael> Yeah that's what I meant by "I don't know how to use it."
<FromGitter> <aisrael> OTOH https://www.embedded.com/design/configurable-systems/4024599/Encrypting-data-with-the-Blowfish-algorithm says ⏎ "To encrypt long strings of data using Blowfish, carve the message up into 64-bit blocks, encrypt each block and save the results."
<FromGitter> <Blacksmoke16> hmm
<FromGitter> <Blacksmoke16> sounds like a pita
<FromGitter> <fridgerator> yeah it does
<FromGitter> <Blacksmoke16> surprised there is just like `encrypt` method somewhere
<FromGitter> <aisrael> (Obligatory) "Write one and submit a PR." :D
<FromGitter> <Blacksmoke16> 😉
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
<FromGitter> <Blacksmoke16> apparently its a thing just not documented? https://play.crystal-lang.org/#/r/4wa9
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 245 seconds]
<FromGitter> <Blacksmoke16> prob could be wrapped into a more friendly method like `encrypt(data : String, key : String, iv : String? = nil, padding : Bool = true) : String`
rohitpaulk has joined #crystal-lang
gtramontina has joined #crystal-lang
thews has quit [Ping timeout: 252 seconds]
DTZUZO has joined #crystal-lang
pabs has quit [Ping timeout: 245 seconds]
pabs has joined #crystal-lang
<FromGitter> <aisrael> Oh, right. The OpenSSL bindings.
rohitpaulk has quit [Ping timeout: 272 seconds]
rohitpaulk has joined #crystal-lang
fifr has quit [Ping timeout: 240 seconds]
fifr has joined #crystal-lang
<FromGitter> <codenoid> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b90c5da58a3797aa30da97e]
<FromGitter> <ultra2mh> is there any good ide for crystal lang ? intellij crystal plugins not work in version 2018.2.2
<FromGitter> <ultra2mh> ???
<FromGitter> <codenoid> i use Sublime and, Sublime-Crystal plugin <3
rohitpaulk has quit [Ping timeout: 244 seconds]
thews has joined #crystal-lang
rohitpaulk has joined #crystal-lang
Groogy1 has joined #crystal-lang
<FromGitter> <girng> @codenoid on WSL or linux?
<FromGitter> <drum445> @codenoid I do the same, on linux
<FromGitter> <girng> Mohammadrez, if on windows i recommend vscode
<FromGitter> <girng> if linux, sublime
rohitpaulk has quit [Ping timeout: 245 seconds]
<FromGitter> <drum445> Why not vscode on linux if you like it?
<FromGitter> <girng> yea ur right, both great. i just find sublime to be more snappier
gtramont_ has joined #crystal-lang
gtramontina has quit [Ping timeout: 244 seconds]
gtramont_ has quit [Remote host closed the connection]
rohitpaulk has joined #crystal-lang
<FromGitter> <codenoid> @girng linux
rohitpaulk has quit [Ping timeout: 246 seconds]
<FromGitter> <girng> @codenoid nice
<FromGitter> <girng> i really miss @sdogruyol hope he comes back!
rohitpaulk has joined #crystal-lang
<FromGitter> <j8r> @crystal-lang realy needs more members to review, and merge, all this PRs :-|
ashirase has quit [Ping timeout: 252 seconds]
ashirase has joined #crystal-lang
Groogy1 has quit [Ping timeout: 252 seconds]
gtramontina has joined #crystal-lang
gtramont_ has joined #crystal-lang
gtramontina has quit [Ping timeout: 245 seconds]
rohitpaulk has quit [Ping timeout: 246 seconds]
Groogy1 has joined #crystal-lang
<gtramont_> Hi all… question: how does `CRYSTAL_PATH` currently work? I tried appending my `./src` to it so I don't have to `../` on all my specs… It broke spectacularly! :-)
<gtramont_> I tried a few different variations of "CRYSTAL_PATH=$CRYSTAL_PATH:$(pwd)/src crystal…" (with/without pwd). But then it looks like I end up overriding stuff from the standard lib…
<FromGitter> <j8r> Have you `crystal env`? This is the path where the crystal binary and its libraries is
<FromGitter> <j8r> you want to use another version?
<gtramont_> Hum… `crystal env` prints out what I'd expect to see… But should I also be able to see something when I do `echo $CRYSTAL_PATH`? It is coming out blank…
<gtramont_> This is what I'm trying: `CRYSTAL_PATH=$CRYSTAL_PATH:$(pwd)/src crystal spec` and it breaks with `Error in line 1: while requiring "prelude": can't find file 'prelude'`
gtramont_ has quit [Remote host closed the connection]
<FromGitter> <straight-shoota> the environment variable `CRYSTAL_PATH` is typically not set in you shell
<FromGitter> <straight-shoota> so `CRYSTAL_PATH=$CRYSTAL_PATH:$(pwd)/src` is essentially `CRYSTAL_PATH=$(pwd)/src`
<FromGitter> <straight-shoota> you need to add the path to stdlib to that env var if you override it
<FromGitter> <straight-shoota> but actually, that should usually not be required. `require` automatically looks in `./src`
<FromGitter> <straight-shoota> okay, wait, I see you want to require from specs
<FromGitter> <straight-shoota> yeah, that requires some `../src/` but I wouldn't replace that with a custom environment variable
<FromGitter> <straight-shoota> that's not what it is meant for
<FromGitter> <straight-shoota> Such relative includes are used throughout specs for stdlib and all shards I know
<FromGitter> <codenoid> is crystal ppa not available for ubuntu 18.04
gtramontina has joined #crystal-lang
gtramontina has quit [Remote host closed the connection]
gtramontina has joined #crystal-lang
gtramontina has quit [Remote host closed the connection]
gtramontina has joined #crystal-lang
gtramontina has quit [Remote host closed the connection]
gtramontina has joined #crystal-lang
shalmezad has joined #crystal-lang
<FromGitter> <straight-shoota> should be
zorp_ has joined #crystal-lang
zorp_ has quit [Read error: Connection reset by peer]
<gtramontina> hum… I get the same result when running from a docker container, using the `crystallang/crystal` image…
<gtramontina> With a bit more of shell scripting I was able to get it running… Though, I'm finding this behavior kinda weird.
<gtramontina> for the record, this is what I came up with… `CRYSTAL_PATH=$(crystal env | egrep '^CRYSTAL_PATH=' | awk -F= '{print $2}' | xargs echo):src crystal spec`
<hightower2> Hey is there some alpha preview of crystal for windows available?
<FromGitter> <vladfaust> #6426
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
<FromGitter> <bew> Ask RX14
<RX14> no
<RX14> well
<RX14> you can compile it for yourself from the wiki instructions
<RX14> but thats hardly an alpha
gtramontina has quit [Remote host closed the connection]
<FromGitter> <straight-shoota> gtramontina, you can replace the entire subshell with `crystal env CRYSTAL_PATH` ;)
<FromGitter> <straight-shoota> But I still don't think this should be encouraged
<FromGitter> <straight-shoota> if at all, `src` should be added in the compiler as default location like `lib`
<FromGitter> <straight-shoota> but it would probably be weird with naming conflicts (say, a file in your `src` folder has the same name as a shard). Obviously, the shard should have precedence (because you couldn't specify it anyway else) but then it's easier to just don't have `src` in path and avoid surprises
<FromGitter> <codenoid> hi,
<FromGitter> <codenoid> how to add input form in qt5, i can't find any related-code to input *layout*https://github.com/Papierkorb/qt5.cr/blob/master/config/classes.yml
<FromGitter> <codenoid> oh cool, `input = Qt::LineEdit.new "uwu"`
gtramontina has joined #crystal-lang
gtramontina has quit [Ping timeout: 240 seconds]
<FromGitter> <codenoid> weird, i can't use these qt properties in crystal ⏎ http://doc.qt.io/qt-5/qtextedit.html
<FromGitter> <codenoid> btw, how to print child function from class
<FromGitter> <bew> using macros you can access all instance methods of a given class
<FromGitter> <codenoid> there is some function about it ⏎ https://preview.ibb.co/jsobUe/Screenshot_from_2018_09_06_23_15_21.png
<FromGitter> <codenoid> pls, give me example @bew
<f1refly> Is there a way to split very big classes over multiple files?
<FromGitter> <bew> yes but why?
<f1refly> Is it in the 'learn' secion of the website and im just blind?
<f1refly> Because i want to use it :)
<FromGitter> <bew> you just have to re-open the class and continue adding things to it
<f1refly> Huh
<f1refly> Ok, thanks
<FromGitter> <codenoid> ugh, crystal qt doesn't have this class http://doc.qt.io/archives/qt-4.8/qmessagebox.html
<FromGitter> <bew> f1refly https://carc.in/#/r/4we3
<FromGitter> <bew> (it works in carc.in if you remove the `require`)
<FromGitter> <codenoid> <3 https://github.com/codenoid/s2c
<FromGitter> <codenoid> i use @Papierkorb QT5 & @straight-shoota SASS lib
DTZUZO has quit [Ping timeout: 244 seconds]
<FromGitter> <bew> nice ;)
wontruefree has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
<FromGitter> <bararchy> wtf is going on with Arch Linux 26.0.1 package?
<FromGitter> <bararchy> 1) 26.1
<FromGitter> <bew> (I'm still on 0.26.0) is it broken?
<FromGitter> <bararchy> no, it's not coming out XD
<FromGitter> <bew> or is it just not released
<FromGitter> <bew> ah
<FromGitter> <bew> x)
<FromGitter> <bararchy> I even e-mailed the guy that's maintaining it
<FromGitter> <bararchy> no response
<FromGitter> <bararchy> Anatol
<FromGitter> <bew> :/
<FromGitter> <bew> how did you get his email addr?
<FromGitter> <bew> where*
<FromGitter> <bararchy> pgp key ;)
<FromGitter> <bararchy> anatol.pomozov@gmail.com
<FromGitter> <bew> ah yes found it too ;) ty
gtramontina has joined #crystal-lang
gtramontina has quit [Ping timeout: 244 seconds]
<FromGitter> <straight-shoota> @codenoid nice
<FromGitter> <straight-shoota> I didn't know there is a Ubuntu package for libsass. Couldn't find it before...
shalmezad has quit [Quit: Leaving]
gtramontina has joined #crystal-lang
sz0 has quit [Ping timeout: 252 seconds]
sz0 has joined #crystal-lang
gtramontina has quit [Ping timeout: 272 seconds]
Groogy1 has quit [Ping timeout: 240 seconds]
<FromGitter> <kaskerd> Just out of curiosity crystal has been around for some time just a year after go and rust. When will version 1 of language be released? To think that go is heading towards version 2.
gtramontina has joined #crystal-lang
hightower2 has quit [Ping timeout: 246 seconds]
gtramontina has quit [Ping timeout: 252 seconds]
johndescs has quit [Ping timeout: 240 seconds]
johndescs has joined #crystal-lang
gtramontina has joined #crystal-lang
gtramontina has quit [Ping timeout: 252 seconds]
hightower2 has joined #crystal-lang
<FromGitter> <Timbus> So crystal should just release a v3 and be really far ahead of the competition
<wontruefree> kaskerd there is a path to v1 but I am not sure how on track it is
<wontruefree> here is a link to the last update https://groups.google.com/forum/#!searchin/crystal-lang/release%7Csort:date/crystal-lang/BEQSAUAZ_pE/8pXqIZMwAAAJ
wontruefree has quit [Quit: this is not the client you are looking for]
gtramontina has joined #crystal-lang
<FromGitter> <fridgerator> @Timbus lol
<FromGitter> <fridgerator> node is on version 10 though... so they're way ahead of everyone
<FromGitter> <fridgerator> they're almost caught up to c++