bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<johnjansen> @iDev0urer tell us when that article is out of draft and we will all share it im sure
Philpax has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
<FromGitter>
<iDev0urer> Will do. Just waiting on anymore feedback and I plan on posting it tomorrow morning
kulelu88 has quit [Quit: Leaving]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
Raimondi has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
<FromGitter>
<johnjansen> anyone know what `local &&= 2` does i mean, i read the docs, and tried it out, but it seems like its basically `local = 2` ⏎ i know im missing something, but what?
<FromGitter>
<jwoertink> well, if it works like it does in ruby, then the object on the left must equate to truthy for the assignment to happen
<FromGitter>
<johnjansen> that makes sense, and it seems to work.
<FromGitter>
<johnjansen> thanks jeremy
<FromGitter>
<jwoertink> :thumbsup:
<FromGitter>
<johnjansen> ive never used it in ruby, or for that matter seen it
<FromGitter>
<jwoertink> Ah, yeah just like the `||=` does the conditional, then the assignment
<FromGitter>
<johnjansen> yeah, although that seems fundamentally different somehow
<FromGitter>
<johnjansen> mainly because it has so much more utility
<FromGitter>
<johnjansen> i think
<FromGitter>
<johnjansen> maybe i need to sleep on it ;-)
<FromGitter>
<jwoertink> the `||=` actually does work slightly different fundamentally, so you're not wrong
Raimondi has quit [Ping timeout: 244 seconds]
<FromGitter>
<jwoertink> normally pipes are like saying "do thing on left, if it's falsy, then do thing on the right", but using `||=` doesn't quite work like that
Raimondi has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
snsei has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondi has joined #crystal-lang
Raimondi has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
Raimondi has joined #crystal-lang
Raimondi has quit [Remote host closed the connection]
rkeene has quit [Ping timeout: 268 seconds]
Raimondi has joined #crystal-lang
Raimondi has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
Raimondi has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondi has joined #crystal-lang
Raimondi has quit [Remote host closed the connection]
snsei has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
Philpax has quit [Ping timeout: 252 seconds]
Raimondi has quit [Ping timeout: 244 seconds]
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
<FromGitter>
<iDev0urer> I'm confused about how class inheritance works. I am trying to create a situation similar to the following: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ But I get the error: `getaddrinfo: Name or service not known`. So my question is, how can you call a parent class' methods from inside a child class? Do I have to create an overload for the method? [https://gitter.im/crystal-lang/crystal?at=5809b1a2759f6d2436d1b673]
bjz has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 256 seconds]
bjz has joined #crystal-lang
HakanD___ has joined #crystal-lang
<FromGitter>
<sdogruyol> @iDev0urer that's not a Crystal error? Have you checked that you can ping the site?
<FromGitter>
<choallin> I've discoverd Crystal just yesterday, so this may sound a little bit stupid, but ... is it valid Crystal code to have a instance variable name in the initializer? Does this set the property for the instance right away without doing it manually?
<FromGitter>
<raydf> @choallin, could you show the code you're trying to write, to better help you out?
Raimondi has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<iDev0urer> @sdogruyol yes I can ping Google, and if I instantiate a new `HTTP::Client` normally it works. It's just when I try to create a class that inherits from `HTTP::Client` that I get an error. Am I not doing something right?
<FromGitter>
<choallin> @raydf I was just refering to the code @iDev0urer posted above, where the initialize method looks this way ```def initialize(@url ...) ``` ⏎ Since this is not valid Ruby, I was wondering if it is assigning the value right away to the variable.
<FromGitter>
<iDev0urer> @choallin as far as I'm aware it is. They do that in The Book
<FromGitter>
<iDev0urer> I suppose I could use composition, I guess more than anything I'm trying to figure out how Crystal works
<FromGitter>
<iDev0urer> The example I gave isn't what I'm actually doing though, it's just a way of showing the error that I was giving. I'm actually trying to create a client that requests an oath2 token from a service and then becomes an authenticated OAuth2 client for said service.
<FromGitter>
<sdogruyol> have you checked oauth in std?
<FromGitter>
<ysbaddaden> I compiled Crystal twice, once with the official DEB (LLVM 3.6) and one with LLVM 3.9: the LLVM optimisation pass is twice (2×) slower! 2.13s vs 5.35s :worried:
<FromGitter>
<ysbaddaden> Otherwise everything else is the same speed
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 250 seconds]
<FromGitter>
<asterite> @ysbaddaden Yeah, newer LLVM releases are slower and slower :(
<FromGitter>
<ysbaddaden> the difference is impressive, thought, I didn't expect it to be so slow
HakanD___ has quit [Quit: Be back later ...]
HakanD___ has joined #crystal-lang
<FromGitter>
<sdogruyol> @ysbaddaden don't we get some free performance gains from that upgrade
<FromGitter>
<ysbaddaden> anyway, the llvm3.9 branch seems OK, I was worried about `crystal play` but it's unaffected by the segfault
<FromGitter>
<ysbaddaden> nope, compiling crystal itself with --stats show no noticeable difference :'(
<FromGitter>
<ysbaddaden> maybe it shoved ~1.8s from "semantic (main)"
<FromGitter>
<asterite> I usually don't see many general performance improvements to LLVM, maybe some specific things like vectorization and stuff which we aren't using/exposing. And of course bug fixes and platform support. They also tend to make a lot of breaking changes :-P . So upgrading to newer LLVM versions kinda feels like downgrading sometimes, though some bugfixes and platform support probably outweight that
<FromGitter>
<asterite> H, maybe the semantic phase did improve :)
<FromGitter>
<sdogruyol> @asterite is there any other choice than keeping up with LLVM?
<FromGitter>
<ysbaddaden> shoving LLVM into Crystal's source code
<FromGitter>
<ysbaddaden> I think Go does just that
<FromGitter>
<asterite> Or using another backend, like compiling to C, or GCC
<FromGitter>
<asterite> What's "shoving LLVM into Crystal's source code"?
<FromGitter>
<ysbaddaden> copy-paste
<FromGitter>
<asterite> @ysbaddaden Since you are here in gitter :) ... Do you think we can merge the ARM PR? And also the LLVM one? Travis looks green for both, and I always prefer to have some support rather than none
<FromGitter>
<asterite> (I just installed llvm 3.9 on my machine, I will test your branch soon, but it seems it works well, according to you and ilovezfs)
<FromGitter>
<ysbaddaden> yep, I was about to ask, let's merge LLVM 3.9 first, then I'll fix and merge the ARM branch
<FromGitter>
<asterite> Let's do it! :D
<FromGitter>
<ysbaddaden> yeah it works for general usage, but there is a segfault in compiler specs whenever a codegen or run raises
<FromGitter>
<ysbaddaden> it's a crash in unwind (affecting at least linux64)
<FromGitter>
<asterite> We can merge it and then fix it. It should continue working for older llvm versions, and we use 3.6 in omnibus, so official releases could still continue working. I don't know about mac, though, with homebrew
<FromGitter>
<ysbaddaden> oh, and you can make LLVM_CONFIG=/usr/bin/llvm-config-3.9 for example
HakanD___ has quit [Quit: Be back later ...]
HakanD___ has joined #crystal-lang
<FromGitter>
<asterite> Oh, that's really nice! We were talking about the other day about how to make it more configurable, and an env variable is a good step
HakanD___ has quit [Ping timeout: 250 seconds]
<FromGitter>
<asterite> @ysbaddaden How can I reproduce the three failing specs? I ran `bin/crystal spec/compiler_spec.cr` and it worked well. Now I'll try with a compiled compiler... or maybe it only happens on linux?
HakanD___ has joined #crystal-lang
<FromGitter>
<ysbaddaden> oh, that's possible
<FromGitter>
<ysbaddaden> that it only happens on linux, I'm on a trusty64
<FromGitter>
<asterite> Cool, I have a trusty64 vm too, I'll try it soon
HakanD___ has quit [Ping timeout: 252 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
HakanD___ has joined #crystal-lang
Raimondi has joined #crystal-lang
<FromGitter>
<sdogruyol> @asterite @ysbaddaden good job :clap:
Raimondi has quit [Ping timeout: 244 seconds]
<FromGitter>
<asterite> I was able to reproduce the crashes... still no idea what the cause might be. Maybe it's related to LLVM's JIT, which gave us a few issues in the past
go|dfish has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kochev has joined #crystal-lang
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
soveran has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
kevin-cn has joined #crystal-lang
kevin-cn has quit [Quit: Page closed]
elia has joined #crystal-lang
HakanD___ has quit [Quit: Be back later ...]
HakanD___ has joined #crystal-lang
Philpax has joined #crystal-lang
HakanD___ has quit [Ping timeout: 256 seconds]
HakanD___ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
kochev has quit [Ping timeout: 252 seconds]
snsei has joined #crystal-lang
early has quit [Remote host closed the connection]
snsei has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
early has joined #crystal-lang
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/vP5pQ
<crystal-gh>
crystal/master 7517056 Ary Borenszweig: Compiler specs: dispose LLVM JIT as soon as possible....
pawnbox has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
pawnbox has joined #crystal-lang
matp__ has joined #crystal-lang
matp has quit [Ping timeout: 260 seconds]
matp_ has quit [Ping timeout: 260 seconds]
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/vPdLf
<crystal-gh>
crystal/master 4343d16 Ary Borenszweig: Add a few more missing node locations. Related to #3439
paulcsmith_ has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
bjz has joined #crystal-lang
paulcsmith_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paulcsmith_ has joined #crystal-lang
bjz has quit [Client Quit]
paulcsmith_ has quit [Ping timeout: 256 seconds]
<FromGitter>
<ysbaddaden> it does take some time, hence why apple decided to leave the dwarf information aside
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Read error: No route to host]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
pawnbox_ has quit [Ping timeout: 252 seconds]
HakanD___ has quit [Ping timeout: 260 seconds]
<FromGitter>
<ysbaddaden> is it possible for a `@[Flags] enum` to not add `None` ? especially when a specified value *is* 0
<FromGitter>
<ysbaddaden> I figured out a bit earlier why unwind didn't work on ARM; reading ARM EHABI properly led to understood that the personnality routine has a *different* signature... I'm stupid sometimes.
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/vPdc3
<crystal-gh>
crystal/master eae4ce3 Ary Borenszweig: Compiler: incorrect to_s for EnumDef. Fixes original bug of #3447
HakanD___ has joined #crystal-lang
<FromGitter>
<asterite> Wow! Nah, that's not very obvious, that the signature will change
<FromGitter>
<asterite> I think it's possible to define a None enum member, though I think that conflicts with the predefined one
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<ysbaddaden> actually it's "@[Flags]enum State; VIRTUAL_UNWIND = 0; ...; end" so it would nice for None to *not* be injected. It works, but it prints None instead of VIRTUAL_UNWIND.
matp__ is now known as matp
<FromGitter>
<ysbaddaden> not just the personality has a different signature, but there are no _Unwind_Exception but _Unwind_ControlBlock too, no Actions but State. No wonder it segfaulted :D
pawnbox has joined #crystal-lang
paulcsmith_ has joined #crystal-lang
<Papierkorb>
ysbaddaden, porting crystal to ARM? Neat!
paulcsmith_ has quit [Ping timeout: 252 seconds]
daekano has quit [Ping timeout: 250 seconds]
bjz has joined #crystal-lang
<FromGitter>
<ysbaddaden> yes: a pull request should be merged soon (over the weekend top), but raising exception doesn't work, yet. I finally got the hang of it, so I'm working on that :-)
daekano has joined #crystal-lang
<Papierkorb>
Writing Android apps in Crystal isn't that far away then
<Papierkorb>
some magic macros to do JNI bridging, and link the object file as shared lib. The latter sounds much more hacky than the former, but ... :P
<FromGitter>
<johnjansen> hi @all just trying to run specs in std lib and im having odd problems, can anyone take a look at the video attached and point me in the right direction http://sendvid.com/xqroclvm
<FromGitter>
<johnjansen> pay attention to the title bar
<RX14>
@johnjansen you're complaining about the title bar?
<RX14>
pretty sure thats just your shell
<FromGitter>
<johnjansen> haha, no, just that it seems to get into a loop which never ends ...
<RX14>
i think you're just being impatient
<RX14>
you can't use `crystal` in the crystal repo anyway
<RX14>
you need to use `bin/crystal`
<FromGitter>
<johnjansen> same thing happens actually
<FromGitter>
<johnjansen> but thats good to know
<RX14>
well how long did you leave it for?
<FromGitter>
<johnjansen> how long would you expect specs to take, or make
<RX14>
to compile?
<RX14>
a minute?
<RX14>
on my i5 desktop
<FromGitter>
<johnjansen> ok so hours would be too long then ;-)
<RX14>
of course
<FromGitter>
<johnjansen> haha, thats my problem, but ill try it again :-)
<FromGitter>
<johnjansen> ok, so `make —no-codegen`?
<RX14>
it's a crystal argument
<RX14>
bin/crystal run --no-codegen spec/foo
<RX14>
actually
<RX14>
bin/crystal run -s spec/foo.cr
<RX14>
-s is for stats
<RX14>
so you can see the timings on each section
<RX14>
and work out where in the compiler it's failing
<FromGitter>
<johnjansen> its running now, ill leave it going and see if it works
<FromGitter>
<iDev0urer> While more people are in here I'm going to post this again. I wrote an article on medium yesterday that I want to publish this morning and I was hoping to get some feedback from the community her. Here is the link to the unpublished article https://medium.com/@dev0urer/crystal-ruby-syntax-with-almost-c-efficiency-ce1fb9c977b8
HakanD___ has quit [Quit: Be back later ...]
<FromGitter>
<johnjansen> narrowed the problem down … `bin/crystal` with no arguments does the exact same thing @RX14
<FromGitter>
<iDev0urer> @here any and all suggestions are welcome
HakanD___ has joined #crystal-lang
<FromGitter>
<asterite> @iDev0urer I read it early this morning, I really like it!
<FromGitter>
<iDev0urer> Thanks @asterite!
<FromGitter>
<iDev0urer> Trying to start contributing to this community. I'm super excited about Crystal
HakanD___ has quit [Ping timeout: 265 seconds]
<RX14>
@iDev0urer looks good to me
<FromGitter>
<johnjansen> anyone else having issue with github right now?
<FromGitter>
<ysbaddaden> @johnjansen not right now, but I had issues with github and gitter some hours ago
<FromGitter>
<johnjansen> they have DNS issues at least in my region
<Papierkorb>
github works, but is pretty slow here
<Papierkorb>
correction: Right now, it doesn't resolve. Was just slow an hour ago
<FromGitter>
<johnjansen> oh well, glad im not in their ops dept. and on a friday too
<FromGitter>
<johnjansen> 3 hours ago `A global event is affecting an upstream DNS provider. GitHub services may be intermittently available at this time.` ⏎ 2 hours ago `The upstream DNS incident has been resolved. We continue to monitor our systems while they deliver a backlog of webhook events.` ⏎ PC World (3 hours ago) `Major DDoS attack on Dyn DNS knocks Spotify, Twitter, Github, Etsy, and more offline`
<FromGitter>
<johnjansen> even twitter is down
sandelius has joined #crystal-lang
<FromGitter>
<johnjansen> now
<FromGitter>
<johnjansen> this is a MASSIVE event guys
<FromGitter>
<johnjansen> id share it on twitter, but …..
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<iDev0urer> :cry:
<FromGitter>
<iDev0urer> Hahaha
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Philpax has quit [Ping timeout: 260 seconds]
paulcsmith_ has joined #crystal-lang
<FromGitter>
<ysbaddaden> oh, sounds like MIRAI is up again
<FromGitter>
<johnjansen> dont bet on it @ysbaddaden im seeing reports of services being very intermittent
elia has quit [Read error: Connection reset by peer]
elia_ has joined #crystal-lang
<FromGitter>
<johnjansen> expect very spotty service till this attack is thwarted … it seems to be coast to coast in the USA
<RX14>
github worked 5 minutes ago
<RX14>
god damnit
<FromGitter>
<johnjansen> haha
<FromGitter>
<johnjansen> take the day off
<RX14>
git is distributed
<RX14>
discord is up
<RX14>
i don't have an excuse
<RX14>
somehow reading about #to(Class) on the mailing list has convinced me that it's a terrible idea simply by the amount of expansion the idea has undergone
<FromGitter>
<johnjansen> what is discord btw? @RX14
<RX14>
discordapp.com
<FromGitter>
<johnjansen> oh that one
<RX14>
it's markted as a gaming chack
<RX14>
but it's actually better than slack
<RX14>
except for search
<RX14>
if they get search working, it's basically slack with voicechat and better code highlighting
<Papierkorb>
Err, how do you add a shard to a project through a local path?
<FromGitter>
<johnjansen> the last thing im going to say on this internet outage; looking at the target countries, it looks like its hitting allied countries … which could make it a possible act of war ...
sandelius has joined #crystal-lang
<Papierkorb>
Well, maybe China is pissed again because someone hosted a great firewall circumvention tool there .. again. Or maybe turkey or so is pissed cause someone shared an erdogan joke in a comment. Who knows.
<FromGitter>
<johnjansen> i have a feeling it might be something to do with the mosul attack, or a continuation of the russian influence … cant help wondering if someone is using the nsa’s toolkit, which they *lost*
<FromGitter>
<johnjansen> homeland security is investigating
<FromGitter>
<sdogruyol> @iDev0urer i'm also reading it now
<FromGitter>
<iDev0urer> All I have to say is, "Thanks Obama"
elia_ has quit [Quit: Computer has gone to sleep.]
<FromGitter>
<sdogruyol> @iDev0urer nice article
<FromGitter>
<iDev0urer> @sdogruyol thanks!
<FromGitter>
<sdogruyol> how about starting an user group in your city :P
<FromGitter>
<sdogruyol> or even in your country haha
<FromGitter>
<iDev0urer> I'd love to haha
<FromGitter>
<sdogruyol> yeah it's simple just get a domain or something from meetup.com :D
<FromGitter>
<johnjansen> there are references to gitter in the cookie
<FromGitter>
<johnjansen> weird
<FromGitter>
<iDev0urer> Cleared my cookies for the site and it worked
<FromGitter>
<iDev0urer> Odd
<BlaXpirit>
welp, jhass, there you go. cookies break it :o
<FromGitter>
<iDev0urer> Is it just me, or are the OAuth2 docs wrong? https://crystal-lang.org/api/0.19.4/OAuth2.html. It says that `OAuth2::AccessToken::Bearer.new()` accepts a string, but the only option I see in the code is a `JSON::PullParser`
<BlaXpirit>
iDev0urer, Class methods inherited from class OAuth2::AccessToken
<FromGitter>
<iDev0urer> @BlaXpirit Ok, but it still requires a `expires_in` value doesn't it?
<FromGitter>
<iDev0urer> I can't get it to work with just a string
<BlaXpirit>
appears so
<FromGitter>
<iDev0urer> I can add an issue to update that documentation and go update it myself
<FromGitter>
<johnjansen> Update: Issues with DNS resolution. ⏎ ⏎ We continue to see widespread effects of the DynDNS outage. Services under heroku.com may be intermittent or unreachable. Applications using SSL Endpoints in the herokussl.com domain are also affected. Heroku SSL (SNI) is not affected. ⏎ ⏎ Our engineers are making every effort to mitigate the short-term effects, as well as a longer-term mitigation strategy. ...
<Papierkorb>
I always loved them cause they let you easily communicate between modules, keeping inter-module deps low, and to the end-user of the lib at the same time
<BlaXpirit>
i guess i very rarely ran into the use case
<crystal-gh>
[crystal] iDev0urer opened pull request #3453: Fixed documentation for OAuth2 #3452 (master...master) https://git.io/vPd1j
<FromGitter>
<iDev0urer> My article on Crystal just got added to the HackerNoon publication on Medium
<FromGitter>
<raydf> I believe there's no yield in slang yet. but you could use functions for composition
<FromGitter>
<sdogruyol> ugh yield / content_for is hard
<FromGitter>
<raydf> *based
<FromGitter>
<raydf> yeahh, that's why i'm using my own view engine vased on temel
<FromGitter>
<sdogruyol> I've done it in Kemal
<FromGitter>
<raydf> @iDev0urer , i created a theme for vscode "crystaldark", maybe you could find it useful.
<FromGitter>
<iDev0urer> I wonder how hard it would be to create Crystal bindings for v8 https://github.com/v8/v8
<FromGitter>
<sdogruyol> @iDev0urer ugh
<FromGitter>
<iDev0urer> @raydf I'll take a look at it!
<FromGitter>
<sdogruyol> have you seen duktape?
<FromGitter>
<iDev0urer> Yeah I have haha
<FromGitter>
<iDev0urer> But the v8 engine is better than duktape's
<FromGitter>
<raydf> duktape has a nice performance.
<FromGitter>
<sdogruyol> that's for sure but it's a PITA
<FromGitter>
<raydf> i created a scripting engine with duktape for workflows and it's very fast
<FromGitter>
<sdogruyol> yeah it's quite fast for anything that'd you normally do
<FromGitter>
<iDev0urer> You're probably right. How is it's ES6 support?
<FromGitter>
<raydf> the botleneck is always the database, that's why i used duktape without worrying about it.
<FromGitter>
<raydf> i believe there's 0 support
<FromGitter>
<raydf> but you can use a transpiler
<FromGitter>
<jwoertink> I could use something that has ES6 support to remove Ruby deps from fez
<FromGitter>
<jwoertink> @iDev0urer if you just want ES6 support in a Kemal app now, fez will handle it
<FromGitter>
<jwoertink> I'm just using babel with Ruby to do it for now
<FromGitter>
<iDev0urer> That's where my thinking is though. With v8 support in crystal it would be pretty easy to port babel to crystal
<FromGitter>
<raydf> why not using babel dist with duktape?
<FromGitter>
<raydf> duktape can handle around 500loc in ms, depending in the complexity of the source
<FromGitter>
<iDev0urer> I just like doing things the hard way ;) haha
<FromGitter>
<iDev0urer> And I'm trying to think of crystal projects
<FromGitter>
<raydf> :)
<FromGitter>
<iDev0urer> I guess what I'm imagining is `therubyracer` ported to crystal
<FromGitter>
<iDev0urer> Sounds like a fun project
<FromGitter>
<ysbaddaden> Oh, I just raised and catched an exception on ARM!
<FromGitter>
<raydf> Uhhmmm fun project for the entire fall-winter :)
* FromGitter
* ysbaddaden happy
Raimondi has quit [Quit: WeeChat 1.6-dev]
<FromGitter>
<johnjansen> nice @ysbaddaden
<FromGitter>
<ysbaddaden> honestly, I had to read the implementation from libstdc++ to understand a bunch of things
<FromGitter>
<johnjansen> you are a better man than me @ysbaddaden
<FromGitter>
<ysbaddaden> nah, there is no such things as "better"
<FromGitter>
<ysbaddaden> I'd say stubborn or crazy
<FromGitter>
<iDev0urer> @ysbaddaden best combination
<FromGitter>
<johnjansen> this is totally unrelated to programming, but i thought you guys would enjoy looking at 40 of the dumbest inventions http://stephcurry.co/40-useless-things-invented/ made me laugh on a friday … please dont order #33
Raimondi has joined #crystal-lang
<BlaXpirit>
you won't believe #33 !!!
<FromGitter>
<johnjansen> right ?? :-)
wlib has joined #crystal-lang
<FromGitter>
<sdogruyol> @ysbaddaden you rock
paulcsmith_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wlib>
hey guys I have a problem I just haven't been able to figure out
<wlib>
my program only sends a portion of the data i want it to into the socket
<FromGitter>
<johnjansen> where is the data coming from
<wlib>
server.accept do |client| puts "[+] Connection accepted from a client".good client << data puts "[*] Sent file to client, ended connection".info client.close puts "[*] Server can continue sending files".info end
<wlib>
i know its a problem with writing to the socket, because i tried writing to a new file and it worked just fine
<wlib>
for some reason writing to socket with `client << data` just sends the first couple of lines
<FromGitter>
<asterite> wlib: I can't seem to reproduce your issue. How does the client read the data?
<Papierkorb>
Is there a logging library which is a bit more like the `logging` ruby gem? A hierarchical logger, with multiple different appenders/formatters per logger?
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<johnjansen> lets start with reddit, although i dont know how much fight ive got in me on a friday afternoon ;-)
<FromGitter>
<iDev0urer> Hahaha
<FromGitter>
<iDev0urer> Thanks ;)
HakanD___ has quit [Quit: Be back later ...]
HakanD___ has joined #crystal-lang
<FromGitter>
<johnjansen> actually nothing much worth stirring up there, the only thing they seem to miss is the lack of a VM in the mix, and that it hasnt diverged from ruby in any but the most essential areas
<FromGitter>
<johnjansen> you might want to mention the “no VM” aspect in your article, if you can still tweak it
danzilio has joined #crystal-lang
<FromGitter>
<johnjansen> i know you mentioned compile to machine code, but some may still equate it to JVM or .Net etc