<FromGitter>
<Betawolf1213> Hello! I just heard about crystal yesterday and was blown away
<FromGitter>
<bew> welcome to the futur :)
<FromGitter>
<Betawolf1213> Been a while since code made me go woah
<FromGitter>
<Betawolf1213> So right now I'm making a security framework tool and I'm looking to rewrite it would be this a good lang to use?
<FromGitter>
<bew> crystal can do anything :)
<FromGitter>
<Betawolf1213> Can someone make the argument why I'd use this over Ruby/Python itself? I really like this lang but I'm not 100% sure it would do what I need
<FromGitter>
<Betawolf1213> Well any lang can basically do anything
<FromGitter>
<bew> true
<FromGitter>
<Betawolf1213> Does anyone have any project repos I can see?
<FromGitter>
<Betawolf1213> or apps they are working on
<FromGitter>
<bew> the only thing I would say against crystal is that the langage is not 1.0 so it's not a good idea to use it in production yet (even if it's pretty stable), because some things might change (in the language or in the stdlib)
<FromGitter>
<bew> a big advantage over python/ruby is that it's compiled, so very fast and type safe
<FromGitter>
<Betawolf1213> Thanks
<FromGitter>
<Betawolf1213> Yea I know it hasn't hit 1.0 sorry gitter froze
<FromGitter>
<Betawolf1213> Thats what I was thinking the fact that it's a compiled lang will be helpful for speed
<FromGitter>
<fridgerator> @Betawolf1213 do you use ruby currently?
<FromGitter>
<Betawolf1213> For other things yea but not this project ⏎ I'm planning on moving over the code to ruby ⏎ but then I saw this
<FromGitter>
<fridgerator> ah ok
<FromGitter>
<bew> What kind of seurity framework do you plan to do?
<FromGitter>
<Betawolf1213> Why is it everything Github makes is super laggy? I love atom and gitter but god
<FromGitter>
<Betawolf1213> an awesome secert one Jk
<FromGitter>
<Betawolf1213> I'll send you the empy repo
<FromGitter>
<Betawolf1213> and the trustedsec team
<FromGitter>
<Betawolf1213> I said eariler that me and him talked about my idea and he was all thumbs up
<FromGitter>
<fridgerator> oh right, you mentioned his name earlier
<FromGitter>
<Betawolf1213> It's a big different than metasploit and his stuff
<FromGitter>
<Betawolf1213> *bit
<FromGitter>
<Betawolf1213> Talked about it indept with him and he though it was a good idea as well as a few others in the scene
<FromGitter>
<Betawolf1213> My programming skills just suck
<FromGitter>
<Betawolf1213> Or I'd have at least a beta out
<FromGitter>
<fridgerator> security / pen testing always interested me, but I never took the time to learn
<FromGitter>
<Betawolf1213> It's kinda like programming for me it's always been this cool thing for me but I started late (I know that's not a thing) but yea
<FromGitter>
<Betawolf1213> I do know HTML,CSS so on
<FromGitter>
<Betawolf1213> tiny bit JS but not really enough
<FromGitter>
<Betawolf1213> and PHP again tiny
<FromGitter>
<Betawolf1213> but python and ruby are my fave
<FromGitter>
<Betawolf1213> I know enough to get some basic scripts out
<FromGitter>
<Betawolf1213> enough ruby to fix other peoples code
<FromGitter>
<Betawolf1213> but not enough to build out a real strucuted application
bjz has joined #crystal-lang
<FromGitter>
<Betawolf1213> in ruby
<FromGitter>
<fridgerator> word
<FromGitter>
<Betawolf1213> Which is sad cause ruby is kinda easy so is python lol
<FromGitter>
<fridgerator> yeah the syntax is easy, but the structure of a bigger application just takes experience
<FromGitter>
<Betawolf1213> but I want to build this thing sooo bad!
<FromGitter>
<bew> try crystal! you should try some crystal on a baby project, and when start to feel confortable, start some little parts of you projects, be sure to test them as you code, and go on :)
<FromGitter>
<Betawolf1213> Yea I think I will
<FromGitter>
<bew> & there's almost always someone here if you have any questions
<FromGitter>
<Betawolf1213> If you read the read me page you'll see that it's supposed to be a framework of tools for even the lastest exploits
<FromGitter>
<Betawolf1213> I think it might be a cool idea to grab the recent shadowbroker stuff even though it's exploits from 2013 and build a leg off of that
<FromGitter>
<Betawolf1213> But I need to find the time to sit d own and really go through it
<FromGitter>
<bew> How to call a captured block with a `with self ???` ?
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<Betawolf1213> Is crystal currently able to be identified in ATOM? or would I put it under ruby?
<FromGitter>
<Betawolf1213> Answered my own question no worries thanks!
<FromGitter>
<Betawolf1213> Also how well does it run in the windows 10 wannabe bash? or should I just spin up fedora and call it a day
<FromGitter>
<Betawolf1213> or arch
<wmoxam>
Its not working on Windows yet
<FromGitter>
<Betawolf1213> Ok, I'm just asking cause the site was saying expermentally you can use the bash on windows 10 and run it
<FromGitter>
<Betawolf1213> so I was wondering how well off that is
<wmoxam>
oh, TIL
<FromGitter>
<Betawolf1213> lol
<wmoxam>
I haven't run Windows in years, so I haven't followed its progress too closely
<FromGitter>
<Betawolf1213> No worries I run windows for all other sorts of stuff but I have linux VMs for days
<FromGitter>
<Betawolf1213> Maybe that's why I'm not a great programmer
<FromGitter>
<Betawolf1213> I haven't let behind the world of windows
<wmoxam>
It works on OpenBSD as well if you're into that
<FromGitter>
<Betawolf1213> Like real BSD not that MAC bs
<FromGitter>
<Betawolf1213> lol
<wmoxam>
I think most programmers are on Windows
<wmoxam>
just not web devs
<FromGitter>
<Betawolf1213> True but lots of webdevs on mac
<FromGitter>
<Betawolf1213> yea
<FromGitter>
<Betawolf1213> Lot's of JS people on mac as well
<wmoxam>
still plenty of them on Windows though
<FromGitter>
<Betawolf1213> So true
<FromGitter>
<Betawolf1213> Well I'll just boot up a linux vm once I finish learning the added new things
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter>
<exts> @wmoxam i'm both, but i write crystal on my linux mint desktop atm
<FromGitter>
<Betawolf1213> @exts so best bet would just be to write it in Linux then
<FromGitter>
<exts> i do both
<FromGitter>
<exts> pc's are like 2 ft away from each other lol
<FromGitter>
<exts> i do work from vagrant though on both, nice to have exact production environment
<FromGitter>
<Betawolf1213> So how well does it run on Windows then? Using bash
<FromGitter>
<Betawolf1213> I use atom as mine
<FromGitter>
<exts> crystal? oh idk, I meant I do web dev on both my computers (not using crystal though)
<FromGitter>
<Betawolf1213> Oh ok
<FromGitter>
<Betawolf1213> And sorry vagrant would be hugly differe
<FromGitter>
<exts> i like working from my windows computer since i have my 3 monitor setup, it's nice. my linux uses a wide screen monitor which is nice too, just not the same though :)
<FromGitter>
<Betawolf1213> Oops ignore that I can't seem to delete on the mobile app
<FromGitter>
<Betawolf1213> 38inch widescreen might change that tho
<FromGitter>
<Betawolf1213> How big is your widescreen
<FromGitter>
<Betawolf1213> The bigger the better in terms of multi vs one monitor setups
<FromGitter>
<Betawolf1213> Like a 40inch 4k monitor beats out three single 27inch monitors
<FromGitter>
<Betawolf1213> That are 1080p
<FromGitter>
<exts> um let me check
<FromGitter>
<Betawolf1213> And an actual monitor not a TV not gonna go into detail but for work TVs make horrible monitors
<FromGitter>
<exts> 29" IPS, not bad, but it's like maybe two 20" monitors pushed together almost
<FromGitter>
<exts> since the widescreen kind of thins it
<FromGitter>
<Betawolf1213> Yeah if you ever want to upgrade go to 38-39 and you won't think too highly of the multi monitor setup lol
<FromGitter>
<exts> no plans tbh
<FromGitter>
<Betawolf1213> But multi monitor still has it's place
<FromGitter>
<exts> those are expensive
<FromGitter>
<Betawolf1213> I'd just rather have 1-2 38-40in monitors than anything
<FromGitter>
<Betawolf1213> Also Korean monitors
<FromGitter>
<exts> bought the one i got LG during black friday. it costs around 300 something atm
<FromGitter>
<Betawolf1213> Look into that good stuff good prices
<FromGitter>
<Betawolf1213> Korean monitors are basically the same exact thing just different housing different board often better and cheaper
<FromGitter>
<Betawolf1213> Jeez I sound like a salemen
<FromGitter>
<exts> yeah, just personal preference the way i have it setup (height and all) is how i've always had it and what I'm most used to
<FromGitter>
<exts> lol
<FromGitter>
<Betawolf1213> No that's good that's how productive nature sticks
<FromGitter>
<Betawolf1213> Plus what works for one dev does not work for another
<FromGitter>
<Betawolf1213> I do know that most devs I've told to go to the 40in 4k realm have never come back lol they went and now I can't get them to leave it
<FromGitter>
<schoening> @Betawolf1213 ok thats a brilliant name haha
<FromGitter>
<Betawolf1213> @schoening what is? My handle?
<FromGitter>
<schoening> Yeah
<FromGitter>
<Betawolf1213> Thanks, has a meaning to it as well. A lot of people in the infosec community just call me "the wolf"
<FromGitter>
<schoening> Haha. Sounds like a Tarantino reference
<FromGitter>
<Betawolf1213> Aha doesn't it
<FromGitter>
<Betawolf1213> I just noticed that
<FromGitter>
<Betawolf1213> What did they call the clean up guy in pulp fiction?
<FromGitter>
<schoening> Quite a lot of people on the interwebs calling themselves alpha, which I find ridiculous so that betawolf is fun
<FromGitter>
<schoening> Oh yeah he is from pulp fiction. I thought reservoir dogs. But it's just the same actor
<FromGitter>
<Betawolf1213> Yeah he's called the wolf in pulp fiction I just realised the connection lol
<FromGitter>
<Betawolf1213> It is the same actor
<FromGitter>
<schoening> Hah
<FromGitter>
<Betawolf1213> I'm already an alpha in real life no point to throw it every single place I go but the beta is there as a reminder
<FromGitter>
<Betawolf1213> It means many things but one of the top meanings is
<FromGitter>
<Betawolf1213> I'm always right behind the alpha
<FromGitter>
<Betawolf1213> Watching every move
<FromGitter>
<Betawolf1213> Awaiting the moment that the alpha backs themselves into a corner so I can make my move.
<FromGitter>
<Betawolf1213> It's also a reminder that I have a lot more to learn in life and texh
<FromGitter>
<Betawolf1213> *tech
<FromGitter>
<Betawolf1213> It also comes down to the fact that I've beta tested so many games 😂 so yeah lots of story behind it
<FromGitter>
<schoening> Hehe ^^
<FromGitter>
<Betawolf1213> Years in the making that name was lol
<FromGitter>
<Betawolf1213> I'm off to bed woke up at 6am today and killed me
<FromGitter>
<Betawolf1213> Oh wait new article to read
<FromGitter>
<Betawolf1213> @CodelessFuture thanks for the read
<FromGitter>
<Betawolf1213> I'll go back and read part one
<FromGitter>
<Betawolf1213> Are you running atom on a Linux box?
<FromGitter>
<CodelessFuture> No on Mac OS
<FromGitter>
<CodelessFuture> @Betawolf1213 I use Mac OS. My first article is featured in Hackernoon also
<FromGitter>
<Betawolf1213> Dammit damn you and your Mac lol
<FromGitter>
<Betawolf1213> Thanks for the quick response
<FromGitter>
<Betawolf1213> Well I bid farewell!
<FromGitter>
<Betawolf1213> Goodnight everyone
<FromGitter>
<CodelessFuture> @Betawolf1213 I used Linux several years and sometimes I want to return on Linux…...
<FromGitter>
<Betawolf1213> @CodelessFuture you should tis great even tho Mac is wanna be freebsd
<FromGitter>
<Betawolf1213> It's a derivative
<FromGitter>
<CodelessFuture> For example I have problem upgrading Crystal now…because autocode is a dependency but I have installed node with system package and not brew and now I’m in trouble…..
<FromGitter>
<CodelessFuture> Also in these day I’m in hotel and have problem with internet connection too……now I have to go see ya
<FromGitter>
<Betawolf1213> That's a bummer! And talk to you later
_whitelogger has joined #crystal-lang
wuehlmaus has joined #crystal-lang
bjz has joined #crystal-lang
Qchmqs has joined #crystal-lang
Raimondii has joined #crystal-lang
<crystal-gh>
[crystal] MakeNowJust opened pull request #4324: Compiler: correct to handle instance variable assignment inside block on global (master...fix/crystal/ivar-in-block-global) https://git.io/v9UNZ
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
<FromGitter>
<exts> does crystal support interface classes?
<FromGitter>
<bew> it has abstract classes
<FromGitter>
<exts> guess i could use abstract class to accomplish the same goal
<RX14>
you can use modules with only abstract methods
<RX14>
and it works like an interface
<BlaXpirit>
exts, yes, probably use modules. abstract classes are usually not what you want
<FromGitter>
<bew> BlaXpirit: why?
<BlaXpirit>
cuz you're using up the only possibility for inheritance
<BlaXpirit>
and there's probably a better reason
<FromGitter>
<exts> trying to make my api wrapper testable, so i can mock the data w/ proper di - so yeah I'm just going to use abstract classes w/ only abstract methods to accomplish what i want - thanks for the tip regarding abstract module
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
<BlaXpirit>
is there any way to write like.. `{ {a, b}, {c, d} } = { {1, 2}, {3, 4} }`
<Papierkorb>
no, you can't do destructuring of deep types.
<Papierkorb>
you'd need to destructure the outer tuple first, and then the inner tuple later
<BlaXpirit>
ok
<FromGitter>
<exts> abstract class did the job, thanks
<FromGitter>
<exts> i hope "expect_raise" gets an alias or rename. `should_raise(Exception)` just sounds so much better when reading spec's
Kug3lis has joined #crystal-lang
<FromGitter>
<bew> @exts I agree, open an issue with this idea?
<BlaXpirit>
that's the least of spec's problems btu whatever
<FromGitter>
<bew> what are the problems about specs?
<FromGitter>
<bew> Is there a way to get the runtime size of an Array of struct ? (the number of bytes occupied)
<BlaXpirit>
bew, can't you just multiply struct size by array size?
<Papierkorb>
bew: `the_ary.size * sizeof(TheStruct)` or `the_ary.to_unsafe.to_slice(the_ary.size).bytesize`
<Papierkorb>
Surprised there's no Array#to_slice
<BlaXpirit>
yeah
Qchmqs has quit [Ping timeout: 260 seconds]
<FromGitter>
<Betawolf1213> Who needs coffee in the am when you can read fitter 😍
<FromGitter>
<Betawolf1213> *gitter
<FromGitter>
<sdogruyol> Hehe
<FromGitter>
<sdogruyol> Welcome
<FromGitter>
<Betawolf1213> Hello and good morning, evening and afternoon everyone
<FromGitter>
<Betawolf1213> The mobile app lacks a lot
<FromGitter>
<sdogruyol> IMHO it's good enough
<FromGitter>
<sdogruyol> Thanks @Betawolf1213
<FromGitter>
<Betawolf1213> It is good but I'd like to be able to access your githubs without having to at you
<FromGitter>
<Betawolf1213> And a few other things are missing like in desktop I can edit my mistakes here I cannot
<FromGitter>
<sdogruyol> You are right
<FromGitter>
<Betawolf1213> Yeah but other than that it's alright
<FromGitter>
<fridgerator> you can edit on mobile, long tap
<FromGitter>
<fridgerator> or double, one of those works
<FromGitter>
<fridgerator> double tap
<FromGitter>
<Betawolf1213> @fridgerator you craxg bastard I love you you get a beer
<FromGitter>
<fridgerator> thanks
<FromGitter>
<Betawolf1213> I was long pressing didn't even think about doing a double tap
<FromGitter>
<fridgerator> yeah its not immediately obvious
<FromGitter>
<Betawolf1213> Should have guessed after all it is the correct way to kill zombies
<FromGitter>
<fridgerator> haha
<FromGitter>
<sdogruyol> Lol
<FromGitter>
<sdogruyol> Didn't know that we're fighting with zombies
<FromGitter>
<Betawolf1213> Waiting on packages from Amazon when you live about 20 mins from a fillment center sucks cause they either coming stupid early or super late
<FromGitter>
<Betawolf1213> Wait you don't code to fight zombies?
<FromGitter>
<sdogruyol> Nope
<FromGitter>
<Betawolf1213> Oh man I think you're missing out on at least 45% of the experience of coding
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<exts> > **<Papierkorb>** Surprised there's no Array#to_slice ⏎ ⏎ Was actually looking for this when I was working on one of those codewars crystal problems
<FromGitter>
<exts> @bew I would open an issue to change the name, but I don't think it'll get changed. - would require nearly every crystal lib/app to update all their specs most likely.
<FromGitter>
<exts> btw if you guys come across an interesting crystal article, could you post it to /r/crystal_programming on reddit - kind of dead there atm
<FromGitter>
<exts> found out 0.22 was released by visiting /r/programming :P
<BlaXpirit>
u havent missed much
<FromGitter>
<exts> @BlaXpirit you still write nim? used to see you on those forums a lot
<BlaXpirit>
exts, i only minimally maintain my existing nim projects
<BlaXpirit>
bleh, i hardly write crystal these days anyway
<FromGitter>
<exts> ah
<Papierkorb>
Didn't write almost any code for a month. Feels like an eternity.
<crystal-gh>
[crystal] Papierkorb opened pull request #4327: Add Array#to_slice and Array#bytesize (master...master) https://git.io/v9T3o