bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
akwiatkowski has joined #crystal-lang
bjz has joined #crystal-lang
ChickeNES has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
mark_66 has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 246 seconds]
A124 has quit [Quit: '']
<FromGitter>
<KCreate> Is there a reason why crystal doesn't run dsymutil on the binary after compilation? Only if you're on mac of course?
A124 has joined #crystal-lang
A124 has quit [Client Quit]
A124 has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest14586
A124 has quit [Client Quit]
A124 has joined #crystal-lang
fenicks has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
Kug3lis has joined #crystal-lang
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest14586 has quit [Ping timeout: 268 seconds]
Kug3lis has joined #crystal-lang
<fenicks>
hi
<fenicks>
Anyone have an issue with the crystal Debian/Ubuntu repo ?
alibby has joined #crystal-lang
akwiatkowski has joined #crystal-lang
alibby has quit [Quit: Leaving.]
Kug3lis_ has joined #crystal-lang
Kug3lis has quit [Ping timeout: 258 seconds]
akwiatkowski has quit [Remote host closed the connection]
<FromGitter>
<Sija> @KCreate I was thinking about that today and the only sensible answers coming to my head were a) not everyone would like to have `.dwarf` files being created from default b) no one implemented it yet
<FromGitter>
<Sija> I’d suggest to open an issue regarding this topic so it can be discussed at large
<FromGitter>
<lhz> Is it possible to assign new macro variables inside a macro? I am looking for a way to access the value of `key` inside the `def` here to avoid duplication (not much, but still): ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=58d512b9685a04fd0e9d350d]
<FromGitter>
<KCreate> @Sija Would you want to open the issue regarding the `dsymutil` tool?
Guest28837 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Svenskunganka>
The lack of a Windows target seems to come up in almost every "quick look" at Crystal, and the progress on that front is a bit slow as none of the core members are in on it yet
<FromGitter>
<jwoertink> Yeah, it sucks, but then again... who's using windows? :trollface:
greengriminal has quit [Quit: This computer has gone to sleep]
<Svenskunganka>
I personally think it would be wise to make it a priority similar to parallelism
<Svenskunganka>
I'm on Windows... :D
<FromGitter>
<jwoertink> I'm sorry for your loss :D
<FromGitter>
<jwoertink> lmao
<FromGitter>
<KCreate> haha
<FromGitter>
<jwoertink> j/k
<Svenskunganka>
Well, I have a old PC in my house running Linux so I'm good
<FromGitter>
<jwoertink> but I agree, it is pretty important
<FromGitter>
<jwoertink> just for the strength of the language
<FromGitter>
<KCreate> BTW, windows support is a key feature they want to implement
<Svenskunganka>
Parallelism and Windows seems to be the two main reasons people are stuck in the "Waiting and see..." stage
<FromGitter>
<jwoertink> My 2 main stuck things are the DNS resolution speed, and http client proxy support
<FromGitter>
<mverzilli> it's not true that no one in the core team is working on Windows support
<FromGitter>
<mverzilli> Brian is on that
<FromGitter>
<mverzilli> he's currently working on making exceptions work in Windows
<FromGitter>
<jwoertink> GO BRIAN GO! :shipit:
<FromGitter>
<KCreate> What branch is he working on?'
<FromGitter>
<KCreate> Because the `windows` branch wasn't updated in the last two years
<FromGitter>
<mverzilli> he's working on his fork
<Svenskunganka>
@mverzilli Oh really? I have completely missed that. I've been following the PR & Issue since they were created and it looks like it is mainly a community effort and but reviewed by the core team
<FromGitter>
<mverzilli> it is one of the major goals :)
<Svenskunganka>
I remember reading an exchange between Serdar and RX I think about Windows support not making it this year. Dangit that the IRCLog is down
<FromGitter>
<KCreate> Will windows only be supported in some kind of posix environment such as mingw?
<Svenskunganka>
The PR aims to bring native Windows support as far as I'm aware
<FromGitter>
<mverzilli> no, the idea is to treat it as a first class citizen
<FromGitter>
<mverzilli> yes, as Svenskunganka said
<FromGitter>
<KCreate> nice
<FromGitter>
<sdogruyol> @jwoertink well said :+1:
<FromGitter>
<mverzilli> @RX14 is doing some awesome and super important foundation work by preparing much more powerful CI harnesses, because we're going to need a huge target matrix (permutations of LLVM versions, OSs, C libs, architectures, etc.)
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #crystal-lang
<FromGitter>
<sdogruyol> yeah
<FromGitter>
<sdogruyol> @RX14 has also started building Crane which is a Crystal toolchain installer much like rustup
<FromGitter>
<KCreate> Is @RX14 part of the core team?
greengriminal has quit [Client Quit]
mark_66 has quit [Remote host closed the connection]
<FromGitter>
<sdogruyol> no
<FromGitter>
<sdogruyol> but he's a great fellow
<Svenskunganka>
rofl, his github profile says he lives in a docker container. Made me giggle :D
<RX14>
yet that means that crystal has no large feedback pool until 1.0
<RX14>
which is after we've locked in the API
<RX14>
it's sad
<FromGitter>
<drosehn> It takes such a long time and a lot of work to get a new language off the ground, because there are so many different things that people will want from it.
<txdv>
since this is ruby like
<txdv>
and c like
<txdv>
they want web apps at the speed of c
<RX14>
the key to popularity in that crowd is having a winning web framework
<RX14>
which we don't have
<txdv>
rails has already won that
<txdv>
:D
<RX14>
yeah well
<RX14>
rails is too magic
<txdv>
its sad, but ruby is relevant only because rails eists
<FromGitter>
<dreyks> big chunk of it yes
<FromGitter>
<dreyks> but not whole
<FromGitter>
<dreyks> ow there's a trend towards nonrails ruby
<FromGitter>
<dreyks> *now
greengriminal has joined #crystal-lang
<txdv>
elixir with phoenix
<txdv>
their marketing is ruby like syntax with awesome web framework
<RX14>
i'd sort of like crystal not to get too webby
<FromGitter>
<fridgerator> less spiderman, more silver surfer?
<FromGitter>
<fridgerator> was a pun on "webby", sorry, continue
<txdv>
but the future is the web
<Svenskunganka>
Imagine a Meteor but for Crystal by utilizing WebAssembly. Isomorphic Crystal web apps would be really cool, but not sure how much of a fairy tale it would be to actually get there.
<Yxhuvud>
I disagree that rails is too magic, but I *really* disagree with some parts of it. Such as the callbacks in AR.
<Yxhuvud>
which is not a case of magic (they are pretty simple), but of inducing spaghetti where spaghetti shouldn't be.
<RX14>
my opinion on magic (macros, lets be honest) is the same as asterite's
<RX14>
do it without first
<RX14>
find the smallest posssible macro scope
<RX14>
and execute that
<RX14>
magic should be limited in scope and targeted
<RX14>
so you understand exactly what your magic compiles down to
<FromGitter>
<dreyks> yes callback he'll is frowned upon in many places
<FromGitter>
<dreyks> that's where interactors/operations/services/younameit came into play
<RX14>
at least we're not nodejs
<FromGitter>
<dreyks> although i know what are this callbacks compiled to this is still suboptimal code
<FromGitter>
<crisward> @sdogruyol I made sure I up-voted them. Good to see Crystal getting the attention it deserves.
<Yxhuvud>
I imagine that what macros are actually needed will be shown as time goes by and being restrictive with them until a clear need is shown is probably a good idea.
<Yxhuvud>
or macro capabilities, rather.
<FromGitter>
<bew> I just hope the `run` macro method will never be removed :smile:
<FromGitter>
<bew> @RX14 although I now agree with asterite's macros opinion, I think it's not clearly written down in the docs or I-don't-know-where, because until the advanced macros video I saw on Vimeo from Ary, I thought the macro language was meant to be over-used.
<RX14>
yeah
<RX14>
that talk really solidified a lot of my opinions I already had about macros
<RX14>
I knew I didn't like overusing them, and knew overuse when I saw it but that talk really makes not abusing macros a step by step solution
<FromGitter>
<bew> I don't know what you think (or others) on the `run` macro method, but I kinda like it over my "macro overuse thinking" because it's still crystal code (with minimal macro usage) that is being executed in the end, and stuff we might want to do with macro-overusage is still doable (not sure it's a "good" way to do it though..)
<RX14>
run is mostly used for templating languages
<RX14>
where you take a file of some sort, and compile it to crystal
<RX14>
i'm glad people are using make with crystal though
<RX14>
i hope that trend contrinues instead of the use of overthought tools
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
<FromGitter>
<KCreate> stuff like gulp or grunt comes to mind...
<Svenskunganka>
How is the compatibility between Make on Linux and Windows?
<Svenskunganka>
Oh nvm there is nmake with some differences
greengriminal has quit [Quit: This computer has gone to sleep]
<RX14>
it's the minimal code needed for a working crystal
<RX14>
a main function and the primitives for int, etc
<FromGitter>
<bew> oh nice, interesting thanks!
<FromGitter>
<bew> is it technically possible to write a GC library for crystal in crystal (by redefining parts of the sdtlib we're using in the lib to use low level memory allocation methods)
<RX14>
yeah of course
<FromGitter>
<bew> soo cool #nerdgasm
<RX14>
you could use the GC in the GC even
<RX14>
you'd probably want to avoid that
<FromGitter>
<bew> didn't understood your before-last reply
<RX14>
never mind
<FromGitter>
<bew> oh I finally got it, yeah, it's not a behavior I'd like to have in the GC x)
<FromGitter>
<KCreate> when doing --prelude=empty, is the GC also removed?
<RX14>
yes
<RX14>
everything is
<RX14>
no raise
<RX14>
no strings
<RX14>
most everything on Int
<RX14>
no division
<RX14>
:P
<FromGitter>
<KCreate> lol why would division be dependent on the stdlib?
<RX14>
there are some ordering dependencies in the prelude, but that's not because of class definition order
<RX14>
that doesn't matter
<FromGitter>
<bew> why ?
<RX14>
why what/
<FromGitter>
<bew> why is there some ordering dependencies if it's not because of class definition order ? and why the require ordering doesn't matter ?
michael_campbell has quit [Quit: ZNC 1.6.1 - http://znc.in]
<FromGitter>
<bew> nvm I got part of my answer from the commen ton top of prelude file
<FromGitter>
<bew> comment*
<FromGitter>
<bew> on*
<RX14>
i have no idea about those ordering depndencioes
<RX14>
i wouldn't be surprised if some of the ordering dependencies don't exist
<RX14>
and have just not been touched
<FromGitter>
<bew> from the prelude documentation:
<FromGitter>
<bew> Entries to this file should only be ordered if macros are involved - macros need to be defined before they are used. A first compiler pass gathers all classes and methods, removing the requirement to place these in load order.
<RX14>
oh
<RX14>
yeah
<RX14>
forgot about macros lol
<FromGitter>
<KCreate> @sdogruyol Have you thought about notifying the people featured in your weekly recap? Because I remember when Charly was featured back in January I didn't even know about it ^^
<crystal-gh>
[crystal] jwoertink opened pull request #4190: Adding put_form to HTTP::Client. Fixes #4181 (master...feature/http_client_put_form) https://git.io/vSTF9
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter>
<Freezerburn> So maybe this is kind of an odd usecase, but: I have a command-line Crystal program that builds a shell command that is basically of the form "find . -not (repo stuff) | xargs -P 4 grep #{some_text}". I use this via Process.run cmd, shell: true, redirecting output and error to a custom IO which filters some of the output, and writes everythign else to STDOUT. When run normally, everything seems to be fine. But
<FromGitter>
... output of the Crystal program to grep, it only gets through part of the search and then ends with "grep: write error", and I have no idea why
<FromGitter>
<Freezerburn> (actually, running it a couple more times, it seems to be cutting off some of the output even without piping to grep)
<FromGitter>
<Freezerburn> I'm sure I could rewrite the command in pure Crystal, just figured it was an easy win to basically use the same shell command I have been for a bit until I found the time to do so
<FromGitter>
<bew> you should open an issue or a question on stackoverflow, you'll get a bit more replies than here I think
<FromGitter>
<Freezerburn> StackOverflow it is then. Thanks
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
Raimondi has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
<FromGitter>
<steveklabnik> Hey all! Quick question: the new website is absolutely beautiful; how did you all go about getting that done? Did someone contribute it, did you hire someone, that kind of thing.
<RX14>
@steveklabnik it was designed by someone at manas iirc
<FromGitter>
<steveklabnik> ahhh that would make sense
<RX14>
@steveklabnik you can check out the git log :) steveklabnik
<FromGitter>
<steveklabnik> i do that all the time
<RX14>
too easy with it just being copy/middle click on linux
<FromGitter>
<steveklabnik> i hear you; i'm in the middle of an OS transition and so all of my muscle memory is wrong now :)
<RX14>
i miss that so much on windows
<FromGitter>
<steveklabnik> anyway, i am generally interested in open source + design and how all that works
<FromGitter>
<steveklabnik> and crystal has (in my opinion) been consistently good at that
<RX14>
it seems that manas have some really good designers
<RX14>
and that way they can just do it for cheap-ish
<FromGitter>
<steveklabnik> yeah
<FromGitter>
<steveklabnik> one thing i've found interesting is the governance of it, like, do you just have some people who do it or do you try to do it open
<RX14>
the site was developed in the open too, was nice seeing it come together on the branch noone noticed
<FromGitter>
<steveklabnik> python had a huuuuuuge thing about this in years past
<FromGitter>
<steveklabnik> ah, sweet
<RX14>
it was open but not advertised
<RX14>
so it doesn't really get publicity
<FromGitter>
<steveklabnik> makes sense
<RX14>
you could say it was practically just dropped
<FromGitter>
<steveklabnik> cool. that pretty much answers all the questions i had
<FromGitter>
<steveklabnik> keep rockin', crystal is neat :smile:
<RX14>
so is rust :)
<RX14>
been meaning to try it out... one day
<FromGitter>
<sdogruyol> @steveklabnik welcome :)
<FromGitter>
<sdogruyol> nice to see a long time Rubyist here
<FromGitter>
<elorest> Is there a better way to get just the current filename inside of a macro? I'm doing `file = __FILE_; file.split("/").last`
<FromGitter>
<Sija> you’re missing 2nd underscore from the suffix, proper const name is `__FILE__`
<FromGitter>
<elorest> typo in gitter. sorry.
<FromGitter>
<Sija> there’s also `__DIR__` if you’d need that
<FromGitter>
<elorest> What I need is the macro equivelant of `File.basename(__FILE__)`
<FromGitter>
<elorest> instead of "/home/deploy/project/src/something_controller.cr" i just need "something_controller.cr"
<FromGitter>
<khepin> hah! yes it works, I forgot to include my code within the class at first
<FromGitter>
<elorest> Got to love those sort of bugs lol
<FromGitter>
<elorest> Seriously though with crystal having that animated logo it could be the coolest laptop sticker ever with lenticular printing.
<FromGitter>
<khepin> At least the part I love is that I can test an updated version of the standard lib without having to recompile the whole language!
bjz has joined #crystal-lang
sustained has quit [Quit: I Retire Chat]
<FromGitter>
<fridgerator> @elorest I would buy one
<BlaXpirit>
i was intrigued by the idea. it's certainly possible to scale the rotating logo and make timed screenshots of it. i gave up on that for now
<BlaXpirit>
to start: http://crystal-lang.org/ and in console `document.write("<canvas id=l width=500 height=500></canvas>"); model = new Viewer3D(document.getElementById("l")); model.shader("flat", 255, 255, 255); model.insertModel("/xml/polyhedron/icosahedron.xml"); model.contrast(0.90);`
<FromGitter>
<elorest> @fridgerator <BlaXpirit> Thanks. I'll look into that further this weekend. So is the code camp thing in may just a different name for a conference or is it different somehow?
<kodo[m]>
is there a way to add deps to project from console?
<RX14>
no
<kodo[m]>
we need something like yarn for crystal heh
<RX14>
why?
<kodo[m]>
I was joking
<RX14>
there's support for what you want in the works