snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
DTZUZO has joined #crystal-lang
csk157 has joined #crystal-lang
csk157 has quit [Ping timeout: 240 seconds]
<FromGitter>
<r3bo0t> > @r3bo0t I think I've been using my fork while waiting for this. Not sure why it wasn't merged, I did all the updates per the feedback I think. I have a habit of forking, fixing, using my fork then swapping over when it's merged. Kemal is super quick to merge stuff in, other shards can be a bit slower. Sometimes they have something conflicting going on I know nothing about, but feel free to use my fork while
<FromGitter>
... you wait. ⏎ thanks
<FromGitter>
<raydf> thanks @faustinoaq
snsei has joined #crystal-lang
_whitelogger has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
<FromGitter>
<sdogruyol> doesn't work out of the box
<FromGitter>
<bararchy> Oh
<livcd>
i wish i could just fast forward +3 years to see Crystal and Nim take off :D
<FromGitter>
<sdogruyol> @livcd we're getting there :P
<FromGitter>
<bararchy> livcd we got a great traction, great adopters and a great dev team and comuunity, we will be there faster then you think
<livcd>
i know right...exciting times :P
csk157 has joined #crystal-lang
<txdv>
Groogy_: lacks ls
<txdv>
sosrry misclick
Guest36397 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #crystal-lang
csk157 has quit [Ping timeout: 258 seconds]
<FromGitter>
<unreadable> morning all, great news and a shiny day as well
<FromGitter>
<bararchy> Morning @unreadable
<FromGitter>
<unreadable> sup, very nice website theme, I always find it hard to get a good design for my projects oO
<FromGitter>
<bararchy> @unreadable thanks man :)
<FromGitter>
<ansarizafar> @bararchy Are you using Crystal to render html on your site?
buggs has joined #crystal-lang
<FromGitter>
<bararchy> @ansarizafar Our site is just wix, not something we handle ourselvs, but, our product is running Kemal for web managment and UI
<Papierkorb>
Groogy: Oh ever heard of this "ACID" stuff with this "SQL standard"? Which allows you to do custom CONSTRAINT checks on your data? For data consistency? Yeah um, no one needs that according to MySQL: https://dev.mysql.com/doc/refman/8.0/en/create-table.html
<Papierkorb>
> The CHECK clause is parsed but ignored by all storage engines. See Section 1.8.2.3, “Foreign Key Differences”.
<Papierkorb>
Groogy: Postgres is the answer really. It's correct and simply so much more powerful. It's a bit behind in the distributed deployment stuff because of all the guarantees it gives you. They're working on it.
<Groogy>
ah cool
<Groogy>
Yeah those things would never really hit me when playing around with stuff for fun
<Groogy>
but definetly see the problem
<Papierkorb>
yeah for toying around you don't care. issue is when that toy project wants to become a non-toy project
<FromGitter>
<ansarizafar> Papierkorb What's your opinion about cockroachdb?
<Papierkorb>
Never tried/used it
<FromGitter>
<r3bo0t> @ Papierkorb with this 30-40 % of startups should stop running :P
<Papierkorb>
Startups aren't really known for overall code quality (Security is a part of that)
csk157 has joined #crystal-lang
<FromGitter>
<r3bo0t> true, totally agree with that.
<FromGitter>
<raydf> nice @vonKingsley, could you add this to awesome-crystal (https://github.com/veelenga/awesome-crystal), i couldn't find it at first with google and that repository.
<FromGitter>
<raydf> maybe i can help you and create a PR.
<Papierkorb>
huh is crystalshards.xyz using canvas fingerprints?
<FromGitter>
<bew> Wut? What's that
<Papierkorb>
the extension blocking that just went nuts
<Papierkorb>
bew, basically, by rendering stuff into a <canvas>, and then reading it back out, you get a fingerprint as every single browser installation renders it every so slightly different
<FromGitter>
<bew> Oh wow
<FromGitter>
<bew> They'r unlikely to do that i think
<Papierkorb>
I just wish that extension would give me a stacktrace or something
<FromGitter>
<monouser7dig> a short question: I'd like to get all files in all subfolders of a folder, Dir.foreach has ben deprecated? an dI can't figure out how to use glob
d1rewolf has joined #crystal-lang
<robacarp>
monouser7dig what is your confusion with glob?
csk157 has joined #crystal-lang
<robacarp>
assuming you want to list the files in "my_stuff": `Dir['my_stuff/*']`
<robacarp>
Just musing here, but it looks like you colud use Dir.entries too
csk157 has quit [Ping timeout: 240 seconds]
fiete has quit [Ping timeout: 240 seconds]
fiete has joined #crystal-lang
<FromGitter>
<sdogruyol> how can I make Crystal use a different `ld`
<Papierkorb>
Rinkana, the hooks are documented in the language docs
DTZUZO has quit [Ping timeout: 240 seconds]
<Papierkorb>
So, Ubuntu 14.04s Clang4.0 is different to what everyone else, including later Ubuntus, call Clang4.0
<RX14>
@sdogruyol you need to find out the argument to cc to make it use gold
<Papierkorb>
Which breaks functionality in bindgen. Fantastic.
<RX14>
then set "CC=cc -ld=gold" or whatever the actual argument it
<FromGitter>
<monouser7dig> robacarp thanks works
<RX14>
seems like CC="cc -fuse-ld=gold"
Ven has joined #crystal-lang
<RX14>
Papierkorb, how is it different?
<RX14>
like do they just not have some features?
Ven is now known as Guest42207
<Papierkorb>
RX14: For some reason, the clang-tool can't grab the default value of a string, and thus can't serialize it.
<Papierkorb>
Clang5.0 has the same issue on that OS?!
<RX14>
lol
<RX14>
build llvm from source
<RX14>
its not toooo hard
<Papierkorb>
on travis
<RX14>
oops
<RX14>
blame distro packagers
<Papierkorb>
Don't worry, I already do
<RX14>
tfw debian packagers have so many patches to packages they created a new tool to manage them
<RX14>
maybe they should just rethink their packaging
<Papierkorb>
Mh, does anybody know how I could get a more recent ubuntu on travis? Anything more recent than that should do, Ubuntu 16.04 works fine e.g.
<RX14>
docker
<RX14>
it seems
<RX14>
or similar/chroot
<Papierkorb>
Mh yeah I'll try that
<RX14>
it seems terrible to me that travis is stuck on a really old ubuntu
<Papierkorb>
I mean I don't wanna complain about travis, it's fantastic how they offer a free CI to everyone who asks
<Papierkorb>
Ubuntu is at fault here
<Papierkorb>
I can replicate the issue on a local Ubuntu14.04 VM
<RX14>
well travis is fantastic
<RX14>
but it doesn't mean I can't think it's a shame they dont offer 16.04 or other LTS releases
<FromGitter>
<yxhuvud> semaphore is also stuck in 14.04 as far as I can see :/
<RX14>
i need to start work on crystal CI aagin
<RX14>
it's gotten so so much easier with AWS per-second billing
<Papierkorb>
RX14: Funnily enough, that bug doesn't actually break the generated bindings. The normal user probably wouldn't even notice lol
<RX14>
i can just spawn a VM each time without worrying
kornelgora has joined #crystal-lang
<kornelgora>
What the best way to start learning crystal for web development. Is necessary to know boostrap ,sass, javascript before dive into crystal or i can just start which it and dont need to know javascript or something else? I know html and css .What framework should i use for crystal amber or kemal?? What framework should i use for crystal amber or kemal??
DTZUZO has joined #crystal-lang
<robacarp>
kornelgora: it depends, both have their tradeoffs. What other language and framework experience do you have?
<FromGitter>
<kornel_gora_twitter> i have program in swift for ios only
<kornelgora>
i have program in swift for ios only
<kornelgora>
no web exprerience i just learn hmtl and css
<robacarp>
I see. Then I would probably start with Kemal. Kemal is a little more transparent about what's going on.
<FromGitter>
<kornel_gora_twitter> should i know also javascript , sass, boostrap ??
<kornelgora>
should i know also javascript , sass, boostrap
<robacarp>
fyi, you don't have to post in gitter and irc. Either one is fine
<robacarp>
all of those technologies are relevant to building websites and applications. I'd advise you learn as you go.
<robacarp>
If appearance is important to you, learning to use bootstrap is a good way to get a decent appearance without much manual javascript/css
kornelgora has quit [Quit: Page closed]
csk157 has joined #crystal-lang
csk157 has quit [Ping timeout: 240 seconds]
mark_66 has quit [Remote host closed the connection]
<FromGitter>
<sdogruyol> @RX14 I'm curious how Rust simplified that
<FromGitter>
<sdogruyol> since this is compatible with Rust maybe we can use it for Crystal too?
<Papierkorb>
what's wrong with Kgdb?
<Papierkorb>
sdogruyol, gdb has worked just fine for years with crystal. Including all GUIs.
<Papierkorb>
uargh, browser based
Guest42207 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb>
C'mon travis, do your thing, I didn't want to waste the whole day on this
Ven has joined #crystal-lang
Ven is now known as Guest45092
Guest45092 is now known as Ven``
<FromGitter>
<unreadable> Jesus man, 83 C# keywords without the specials one loool
<FromGitter>
<unreadable> I'm pretty sure there's c# devs here. What did you go for it instead of Java??
<Groogy>
Xbox 360 development
<Groogy>
Is why I used it
<FromGitter>
<fridgerator> Unity3D
<FromGitter>
<mgarciaisaia> Hi there! For everyone that was mentioning the 0.24.0 pre-release missing its changelog - we mixed something wrong within Github, so not only the changelog BUT THE PACKAGES were missing. I'm about to republish them - sorry about that!
<Papierkorb>
mgarciaisaia, could you add you (and/or others) to the README in a section who's responsible for the release and distribution stuff? Possibly with contact addresses?
<RX14>
if it's a pre-release it should be 0.24.0-pre1
<RX14>
otherwise you'd have to change the tag if we rerelease
<RX14>
which isn't a good idea
<FromGitter>
<mgarciaisaia> @Papierkorb I've built this one myself, but haven't been involved in the development. What do you think having that data in the release could help for? (to picture the use case, I mean)
<RX14>
ideally CI is responsible for releases
<RX14>
push a tag and go
<crystal-gh>
[crystal] asterite pushed 2 new commits to master: https://git.io/vFqem
<crystal-gh>
crystal/master 0c22505 TSUYUSATO Kitsune: Fix to parse regex starting with ';' after call
<Papierkorb>
mgarciaisaia, To know where to direct questions on a release or release-related issues. Also as contact for re-distributors (e.g., for various linux distros)
csk157 has joined #crystal-lang
<RX14>
@mgarciaisaia you should probably open a WIP PR with that changelog in so that people can review it
<RX14>
I think that a changelog PR is a good way to communicate about a track releases in general
<RX14>
so before -pre1 of a release we should open a changelog PR which cherry picks the changelog commit and tag it 0.x.x-pre1
<FromGitter>
<sdogruyol> I'd like that too
<RX14>
then we discuss the release and the changelog and once we reach a consesnsus we merge the PR, tag it
<RX14>
and release
<crystal-gh>
[crystal] RX14 closed pull request #5202: Don't lookup super method on the top level (master...super) https://git.io/vFIgj
csk157 has quit [Ping timeout: 248 seconds]
<crystal-gh>
[crystal] asterite closed pull request #5198: Format: fix indentation of last comment of exception handler block (master...fix/crystal-format/5196-format-last-comment-of-exception-handler-block) https://git.io/vFI3z
alex`` has joined #crystal-lang
<FromGitter>
<mgarciaisaia> Not sure if I've tried, but *I think* there was an issue with setting Crystal version to anything else but `x.y.z` - ie, funny things happen when you add `-something`. But it very well be just my imagination.
<RX14>
well it needs to be fixed
<FromGitter>
<mgarciaisaia> I'm totally in for using a `-preX`, but prefered to have *a* build now, then make it better 🆗
<RX14>
because having multiple "0.24.0" compilers with different commits is a terrible idea
<FromGitter>
<mgarciaisaia> Totally agree - the stable release will probably be 0.24.1, or whatever
<RX14>
ouch
hightower4 has joined #crystal-lang
hightower3 has quit [Ping timeout: 248 seconds]
<FromGitter>
<crisward> @r3bo0t You can't use utf8mb4 as utf8 is hard coded. But you could patch it. Think the issue kind of explains how. Though if you need more help just ask. Sorry for slow replies, at work gmt 8-5.
<FromGitter>
<asterite> I personally think we should just release 0.24.0 without -pre1 stuff
<FromGitter>
<asterite> After all we are still 0.x
<FromGitter>
<asterite> We release, if something breaks (and it's most often the case) we release a 0.24.1 with the fixes
<FromGitter>
<asterite> After 1.0 we can think of a more conservative approach
d1rewolf has quit [Ping timeout: 264 seconds]
<travis-ci>
crystal-lang/crystal#748afe5 (master - Merge pull request #5198 from MakeNowJust/fix/crystal-format/5196-format-last-comment-of-exception-handler-block): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/294969795
<Groogy>
return does exactly the same thing from what I understand?
<jsn->
of course it's a trick; i just have a nested loop, there's no other reasons to extract inner parts of it as a method other than to be able to use return to break out of more than one loop layer
d1rewolf has joined #crystal-lang
<jsn->
...so, i see that the answer is "no", apparently
<Groogy>
I'm not really following you, I do that all the time?
<Groogy>
I have the value I want, no point to keep going and just return
tdc_ has quit [Read error: Connection reset by peer]
tdc has joined #crystal-lang
<Groogy>
anyway off to home! cya guys!
<FromGitter>
<Rinkana> Is there a method_missing macro hook that also works for static methods?
<FromGitter>
<mgarciaisaia> We're not 1.0 yet, but I think it's nice we start walking the release process path *before* getting stable - so we make any mistakes now instead of then
<RX14>
jsn-, no there's no way of doing it but nested loops with break is really an antipattern and you should be breaking out into a function
<RX14>
what exactly is the usecase?
<RX14>
also i really should have called that "HashDOS-resistant hash function" not secure
<vivus>
can anyone tell me what I should adjust the following to: database: postgres://root:@localhost:5432/myblog_development ??
Ven has joined #crystal-lang
Ven is now known as Guest9063
<Papierkorb>
vivus: can you access the db using that exact uri by passing it to the `psql` tool?
<Yxhuvud>
unreadable: we do have method overloads with different signatures though, so perhaps that can help
<Papierkorb>
my money's still on the extra colon
<vivus>
Papierkorb: so I try: psql postgres://root:@localhost:5432/myblog_development and then when it asks for password, I hit enter and it comes back with: psql: fe_sendauth: no password supplied
<Papierkorb>
vivus: Have you tried removing the extra colon?
<vivus>
Papierkorb: this is copy/pasted from the generated database.yaml file
<Papierkorb>
Never used amber
RickHull has joined #crystal-lang
tdc has quit [Read error: Connection reset by peer]
<FromGitter>
<fridgerator> vivus, what are the credentials for your postgres installation?
<FromGitter>
<fridgerator> well... you dont have to type them here, but they need to be in that url correctly
<FromGitter>
<fridgerator> try `postgres://localhost:5342/myblog_development` or `postgres://postgres@localhost:5342/myblog_development`
<vivus>
so the database doesn't exist ...
<vivus>
but that makes sense, as this is db create
<Papierkorb>
you can't connect to a DB that doesn't exist yet
<Papierkorb>
Even if you intend to issue a CREATE DATABASE shortly after
<vivus>
so I changed the command like so: postgres://postgres@localhost:5342/myblog_development , but the error doesn't make sense: Connection refused: postgres://postgres@localhost:5342/postgres , why does it choose /postgres ?
<Papierkorb>
that's the default DB
<Papierkorb>
And conn refused? Is your postgres running at all?
<vivus>
@fridgerator , got it to work. so the issue is that I had a blank password (as the instructions told me), but I needed to add a password
<FromGitter>
<fridgerator> great!
<vivus>
thank you sir
<vivus>
can I duplicate a rails application almost similar to amber?
csk157 has quit [Ping timeout: 240 seconds]
<crystal-gh>
[crystal] RX14 closed pull request #5104: Add (Half)SipHash PRF and integrate it into Crystal::Hasher (master...std-siphash) https://git.io/vdrxe
<FromGitter>
<coderhs> Hi there. Whats the equivalent of `“test”.to_sym` in crystal?
<Papierkorb>
There's none.
<Papierkorb>
Symbols are compile-time constructs and can't be 'constructed' at run-time
<FromGitter>
<coderhs> Okay. got it.
vivus has quit [Quit: Leaving]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #crystal-lang
<RX14>
Papierkorb, do you think we could remove symbols and just use Enums? I never use symbols myself
<Papierkorb>
I can't tell you when I used a Symbol, outside of a NamedTuple, and that's already rare
<RX14>
well i use namedtuples a lot
<RX14>
but apart from that
<RX14>
we could remove symbols and just use
<RX14>
hmm
<Papierkorb>
String
<RX14>
idk what we could use
<RX14>
well String is a pain
<Papierkorb>
For named tuples?
<RX14>
because it requires an allocation
<FromGitter>
<paulcsmith> I think one use-case where symbols make sense to people are when using macros. Though they could use just the bare word, I think it's a bit odd for people new to the language. Maybe that's fine though
<RX14>
actuallt for constant strings it's always just going to be a pointer
<Papierkorb>
Ah well, then people would expect `named_tuple["foo#{bar}"]` to work, that's no good
<RX14>
well
<RX14>
you can use a symbol in a variable
<RX14>
can't you
<Papierkorb>
Yeah but you can't do `named_tuple[:"foo#{bar}"]` right now
Guest9063 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb>
That's fine, and is expected. But if you were to replace symbols with strings (to get rid of symbols) in named tuples, that'd be hella confusing
<RX14>
well is it really?
<Papierkorb>
It looks completely like a Hash
<RX14>
because you can already pass in arbitrary sumbols
<RX14>
which might not match
<FromGitter>
<coderhs> Are symbols in crystal like that in ruby? In ruby we use symbol for memory efficiency.
<Papierkorb>
Yes, but you don't expect to be able to create them at runtime RX14
<Papierkorb>
coderhs, Symbols are barely useful in Crystal
<RX14>
@coderhs constant strings == ruby symbol
<FromGitter>
<coderhs> gotcha.
<RX14>
crystal symbol == better
<Papierkorb>
I think it's fine to have them overall, but treat them like when they were introduced to Ruby: As implementation detail
<RX14>
but not really like what i said at all
<RX14>
so yeah
<RX14>
property :foo annoys me though lol
<Papierkorb>
Though I only see Ruby-ists asking for String#to_sym and friends. Which makes sense
<RX14>
people using property, etc like attr_accessor
<Papierkorb>
We could change property/getter/setter to raise on SymbolLiteral
<Papierkorb>
Because yeah, that notation really sucks
<RX14>
as soon as you want to spec a type you need to change anwyay lol