<jokke>
asterite: hey, i'm writing my thesis in large parts with crystal and thought to ask you about some good materials for citations. :) Since crystal is so young it's very hard to find anything. If you have any kind of benchmarks or statistics of any kind at manastec that you could share and think could be of use please give me a shout! :)
Raimondi has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rok has joined #crystal-lang
perks has joined #crystal-lang
perks has quit [Client Quit]
rok has quit [Quit: rok]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
onec has joined #crystal-lang
Gasher has quit [Quit: Leaving]
mgarciaisaia has joined #crystal-lang
pawnbox has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
pawnbox has quit [Ping timeout: 244 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
greengriminal has joined #crystal-lang
tomchapi_ has quit [Ping timeout: 276 seconds]
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has quit [Read error: Connection reset by peer]
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
tomchapin has joined #crystal-lang
A124 has quit [Quit: '']
A124 has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
onec has quit []
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
davidbackeus has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
Philpax has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
alsm has joined #crystal-lang
fg has joined #crystal-lang
rok has joined #crystal-lang
davidbackeus has quit [Remote host closed the connection]
davidbackeus has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
davidbackeus has quit [Remote host closed the connection]
davidbackeus has joined #crystal-lang
davidbackeus has quit [Remote host closed the connection]
davidbackeus has joined #crystal-lang
<BlaXpirit>
So I'm trying to use crystal_lib and it seems to ignore enums, which isn't nice :|
Gasher has joined #crystal-lang
fg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fg has joined #crystal-lang
<crystal-gh>
[crystal] MakeNowJust opened pull request #2307: Fix IO#gets_to_end example (master...fix/gets-to-end-doc) https://git.io/vaBjP
ponga has joined #crystal-lang
rok has quit [Quit: rok]
pawnbox has quit [Remote host closed the connection]
davidbackeus has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
davidbackeus has quit [Client Quit]
pawnbox has joined #crystal-lang
<jokke>
this is really really important. i need to finish my thesis by monday. :/
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<RX14>
what's it on?
<jokke>
RX14: the thesis?
<RX14>
yea
<jokke>
RX14: about a reactive cms based on redux (flux) in the frontend and crystal with a performant json api serializer with builtin caching in the backend
<RX14>
cool
<jokke>
RX14: unfortunately it's in german :P
<jokke>
it's really annoying because most of the computer science terms are in english
<RX14>
well, it's a cool idea regardless of the langauge
<jokke>
yeah i like it too, was fun
<jokke>
most of it is open source
<jokke>
check out crystal-jsonapi and crouter
<jokke>
aww come on... i reverted back to v0.11 which compiles it but now something else regarding yaml doesn't work: https://p.jreinert.com/HHA7/
<RX14>
yeah
<RX14>
uninstall hardening-wrapper
fg has joined #crystal-lang
<RX14>
then it should work
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/vaR4l
<onec>
So I started learning Crystal and Ruby today and created a short model of a bio lab we are doing currently. While it works how I want it to so far, I feel like this is extremely badly written Crystal. How should I change this? https://gist.github.com/justinpchang/1b25d318ebed0c9ac4a2
Gasher has quit [Ping timeout: 276 seconds]
Gasher has joined #crystal-lang
<jokke>
well
<jokke>
first of all, i'd indent my code with 2 spaces
<jokke>
and you're using so many global variables, it makes my head spin :D
<jokke>
onec:
<jokke>
if else assignments you can shorten with a ternary operator
<onec>
Ah sorry about the tabs, GitHub isn't updating the file when I change tab spacing.
<onec>
So how would I work with local variables if I want to be able to access all of my the variables I had made global?
<jokke>
you use object oriententation
<jokke>
*orientation
trapped has quit [Read error: Connection reset by peer]
<onec>
So like each allele, gamete, and generation would be an object with getters for the variables I need? Would that in any way slow the program down?
<jokke>
also working with symbols instead of strings if you use them like you do (no string manipulation) would be advisable
<jokke>
also performance wise
<jokke>
onec: it would, if they would be instanciated in the millions
<jokke>
you could also use struct
<jokke>
which get's passed by value
<onec>
Ah ok, I see that page in the docs.
<jokke>
also i don't know how random your random should be but keep in mind rand is just pseudorandom
<jokke>
but then again using SecureRandom (which would provide much better random data) is a lot slower
<onec>
So overall, is the flow of the program okay in terms of sequential methods? That seems clunky to me. And ok, I'll keep that in mind
<jokke>
it's very imperative
<jokke>
also the assignment in line 34 doesn't make much sense
<jokke>
same thing in 25
<onec>
Would that not create two different alleles with two different method calls, or does that only create 1?
stef__ has joined #crystal-lang
<onec>
Also, is imperative programming encouraged in Crystal?
<jokke>
no
<jokke>
crystal is very deeply object oriented
<jokke>
even nil is an object
<jokke>
the method would create two different alleles with two different method calls, as it does now
stef__ has quit [Client Quit]
zodiak has joined #crystal-lang
<jokke>
also consider something like [:A, :B].sample in line 25