Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:56
    asterite opened #12387
  • 11:56
    asterite labeled #12387
  • 11:56
    asterite labeled #12387
  • 11:50
    asterite synchronize #12378
  • 08:36
    HOMODELUNA labeled #12386
  • 08:36
    HOMODELUNA opened #12386
  • Aug 13 22:20
    HertzDevil synchronize #12145
  • Aug 13 22:19
    HertzDevil synchronize #12145
  • Aug 13 20:15
    HertzDevil labeled #9581
  • Aug 13 20:15
    HertzDevil labeled #9581
  • Aug 13 20:15
    HertzDevil labeled #9581
  • Aug 13 19:31
    HertzDevil edited #12356
  • Aug 13 18:36
    HertzDevil labeled #12385
  • Aug 13 18:36
    HertzDevil labeled #12385
  • Aug 13 18:36
    HertzDevil labeled #12385
  • Aug 13 18:36
    HertzDevil opened #12385
  • Aug 13 18:16
    HertzDevil labeled #12384
  • Aug 13 18:16
    HertzDevil opened #12384
  • Aug 13 18:16
    HertzDevil labeled #12384
  • Aug 13 17:24
    phil294 closed #12380
From IRC (bridge bot)
@FromIRC
<oprypin> @kazzkiq, it's a convenience method that wraps Process.new and Process.wait which blocks the current fiber until the process ends
<oprypin> also why run a curl command......
laurent bernabé
@loloof64
Hello everyone :smiley: Is there already a binding for WxWidgets for Crystal ? My Google search did not show me suitable result.
Rubi
@codenoid
Faustino Aguilar
@faustinoaq

huh what does the delegate macro do exactly? Not seen that before

Groogy, check :point_right: http://devdocs.io/crystal/api/0.23.0/object#delegate(*methods,toobject)-macro

Hello everyone :smiley: Is there already a binding for WxWidgets for Crystal ?

unfortunately

But you can try Qt bindings :wink:

https://github.com/Papierkorb/qt5.cr

Claudio Holanda
@kazzkiq

<oprypin> also why run a curl command......

Because that's the only way to make Mailgun work with Crystal at the moment

Cris Ward
@crisward
@kazzkiq I have a mailgun client, just not got around to open sourcing it yet. It's actually mailgun and sendgrid. I use HTTP::Client. I want to add a wrapper around SMTP with it to, so it's a common api for however you want to send mail.
laurent bernabé
@loloof64
Thanks @codenoid Maybe I'll have to do myself bindings for the functionnalities I need
Or use another GUI framework like libui : http://crystalshards.xyz/?filter=libui
From IRC (bridge bot)
@FromIRC
<oprypin> @kazzkiq, are you sure about that? crystal's http client should (at least strive to) provide all the same functionality. if it doesnt match that expectation, ask for help / report it
laurent bernabé
@loloof64
Thank you also @faustinoaq Maybe Qt binding will be the solution.
Faustino Aguilar
@faustinoaq
Yeah Qt bindings are awesome! :sparkles:
Screenshot_20170926_142450.png
From IRC (bridge bot)
@FromIRC
<Papierkorb> <⁠3
Faustino Aguilar
@faustinoaq
:+1:
A = [] of Nil
{% A << 0 %}
{% p A[0] %} # => 0
How is this possible ?
From IRC (bridge bot)
@FromIRC
<Papierkorb> lul ^
Elias Perez
@eliasjpr
:confused:
From IRC (bridge bot)
@FromIRC
<oprypin> yeah not the first time i see this
Elias Perez
@eliasjpr
Maybe is not a bug maybe is a feature :D
maybe this is why https://carc.in/#/r/2sv9
Cris Ward
@crisward
Just open sourced this - https://github.com/crisward/mailer
Ary Borenszweig
@asterite
When you don't use a constant it's not typed, so a constant can be used as a placeholder in macros
That is, when you don't use that constant at runtime
Also known has hack #123 (just kidding)
But Elixir does something similar, only with attributes (which only exist at compile-time, I think)
Kingsley Lewis
@vonKingsley
is there a way to tell crystal to always use some link-flags, so i don't forget to pass --link-flags -I/usr/local/opt/openssl/include --link-flags -L/usr/local/opt/openssl/lib each time
José Rodrigues
@joselfr
@vonKingsley I don't know if you can configure crystal for that but you can do a shell alias. Or better a makefile.
Kingsley Lewis
@vonKingsley
thanks @jose-rodrigues i think ill add it to a shell alias
Claudio Holanda
@kazzkiq
@crisward Awesome! Will take a look at it tonight. Thanks!
Ary Borenszweig
@asterite
You can use @[Link] on LibC
Cris Ward
@crisward
@kazzkiq raise an issue if you have any problems. Took me a while to originally get the apis working ok, but pretty sure everything is there now, except the stuff mentioned in the Readme.
From IRC (bridge bot)
@FromIRC
<oprypin> @vonKingsley, have u tried {LD_,}LIBRARY_PATH=/usr/local/opt/openssl/lib crystal run blah
<oprypin> in which case, export {LD_,}LIBRARY_PATH=/usr/local/opt/openssl/lib in your shell and proceed normally
Kingsley Lewis
@vonKingsley
@oprypin I originally just tried LIBRARY_PATH=/usr/local/opt/openssl/lib crystal run which didn't work for me
From IRC (bridge bot)
@FromIRC
<oprypin> LIBRARY_PATH is for build LD_LIBRARY_PATH is for execution. so have u tried both?
Kingsley Lewis
@vonKingsley
@oprypin just tried it and it still didn't work for me, still links to openssl 0.9.8
From IRC (bridge bot)
@FromIRC
<oprypin> @vonKingsley, how are you checking that? it does not link to any particular openssl
<oprypin> you must use LD_LIBRARY_PATH when running the resulting binary
<oprypin> that's when the override happens
Kingsley Lewis
@vonKingsley
i was checking two ways 1 with otool -L on the binary. and the other was running a wireshark and checking if it was using tls 1.2, trying to troublshoot an tls issue
From IRC (bridge bot)
@FromIRC
<oprypin> ok but did u start those with LD_LIBRARY_PATH
Kingsley Lewis
@vonKingsley
Yeah I tried LD_LIBRARY_PATH=/usr/local/opt/openssl/lib crystal run tls_test.cr and it was still using, TLS V1. no worries on it. i got to run but i'll figure something out.
Faustino Aguilar
@faustinoaq
I know you should use LIBRARY_PATH at compile time and LD_LIBRARY_PATH at run time. so:
$ LIBRARY_PATH=/my/lib/path crystal build myprogram.cr
$ LD_LIBRARY_PATH=/my/lib/path ./myprogram

<oprypin> LIBRARY_PATH is for build LD_LIBRARY_PATH is for execution. so have u tried both?

I just see it :sweat_smile:

Faustino Aguilar
@faustinoaq

Does Crystal have something like Intersection Types ? [0]

[0] - https://flow.org/en/docs/types/intersections/

Ghost
@ghost~55586c4815522ed4b3e08557
@faustinoaq I don't get it, what's the difference with our unions?