Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:52
    straight-shoota milestoned #13025
  • 14:52
    straight-shoota milestoned #13025
  • 12:23
    asterite edited #13025
  • 12:21
    asterite ready_for_review #13025
  • 07:55
    Tamnac opened #13026
  • Jan 28 21:02
    Blacksmoke16 labeled #13025
  • Jan 28 21:02
    Blacksmoke16 labeled #13025
  • Jan 28 21:02
    Blacksmoke16 labeled #13024
  • Jan 28 21:02
    Blacksmoke16 labeled #13024
  • Jan 28 18:45
    asterite opened #13025
  • Jan 28 16:23
    meatball133 synchronize #13024
  • Jan 28 15:53
    meatball133 edited #13024
  • Jan 28 15:51
    meatball133 opened #13024
  • Jan 28 15:10
    meatball133 ready_for_review #13008
  • Jan 28 13:24
    straight-shoota closed #13014
  • Jan 28 02:34
    Blacksmoke16 labeled #13023
  • Jan 28 02:19
    cyangle labeled #13023
  • Jan 28 02:19
    cyangle opened #13023
  • Jan 28 00:41
    devnote-dev labeled #13022
  • Jan 28 00:41
    devnote-dev opened #13022
From IRC (bridge bot)
@FromIRC
<adam12> @RX14: never knew you joined core team. congrats!
<RX14> thanks!
Faustino Aguilar
@faustinoaq
@bararchy crystal-lang/sublime-crystal#24 is not a complete fix but it helps coloring all parens
From IRC (bridge bot)
@FromIRC
<adam12> I'm not super familiar with LLVM but I wonder what makes these triples differ. x86_64-unknown-freebsd11.0 vs x86_64-portbld-freebsd
Faustino Aguilar
@faustinoaq
Screenshot_20170802_095002.png
The Three most loved PR for Crystal :heart:
Windows, Android and Web Assembly :smile:
Serdar Dogruyol - Sedo セド
@sdogruyol
Cool @faustinoaq
Johannes Müller
@straight-shoota
#4757 is the most hearted issue, just after Windows
and most :+1: has #2394 ;)
Faustino Aguilar
@faustinoaq
Crystal community have a good humor sense :smile:
Serdar Dogruyol - Sedo セド
@sdogruyol
Yeah, we have MINASWAN in our hearts <3
Bar Hofesh
@bararchy
:large_blue_circle: we do )
:monkey:
Claudio Holanda
@kazzkiq
What is the difference between crystal deps and shards install?
Johannes Müller
@straight-shoota
crystal deps calls shards install, shards install does not :smirk:
From IRC (bridge bot)
@FromIRC
<oprypin> @kazzkiq, shards install is a newer development. crystal deps used to be something else, became a redirect to shards install
Johannes Müller
@straight-shoota
Claudio Holanda
@kazzkiq
I have a NamedTuple that may or may not have some of its keys, how do I create such "dynamic" NamedTuple?
I'm trying something like that, without success:
data = NamedTuple.new(name: String, nickname: String)

data[:name] = name.to_s if name #only assign if name exists
data[:nickname] = nickname.to_s if nickname #only assign if nickname exists
From IRC (bridge bot)
@FromIRC
<Papierkorb> In best case, not at all
<Papierkorb> NamedTuple are immutable data structures, with keys known at compile-time.
<Papierkorb> If you need something mutable, use a Hash
Claudio Holanda
@kazzkiq
Hmmmm, will try that.
Rubi
@codenoid
PCRE does not support \L, \l, \N{name}, \U, or \u at 2
piperun
@piperun
Hello everyone, I'm a little curious about crystal, as far as I know it's a compiled language but I'm wondering if it's possible to use Crystal as a script language in say making video games?
From IRC (bridge bot)
@FromIRC
<tosmi> hi, i'm trying to compile crystal on freebsd 10.3
<tosmi> following the comment in crystal-lang/crystal#4185, i'm using the 0.19 freebsd binary to build 0.20.0
<tosmi> gmake works, but call gmake spec or running gmake a second time yields the following error message
<tosmi> any hints what i'm donig wrong here? thanks
Bar Hofesh
@bararchy
@piperun there are more then a few people doing game development in Crystal , I don't really understand the Script part in the question though
Johannes Müller
@straight-shoota
I think @piperun want's to use Crystal as an interpreted language to easily allow custom modifications.
This would be very difficult and probably not really helpful, because Crystal's type inference for example needs to assess the whole program and not just parts of it.
Johannes Müller
@straight-shoota
@tosmi I don't know if it helps, but does src/lib_c/x86_64-portbld-freebsd/c/dlfcn.cr exist?
Oh I see you figured that^^
piperun
@piperun
@straight-shoota I see, thanks for the input!
Johannes Müller
@straight-shoota
you could probably better use Lua (or somthing similar, maybe mruby). This language was explicitly designed for such tasks. IIRC there are Crystal bindings for liblua.
From IRC (bridge bot)
@FromIRC
<tosmi> got 0.20.0 to compile after renaming lib_c/x86_64-portbld-freebsd to lib_c/x86_64-unknown-freebsd
<tosmi> but now 0.20.1 fails with in src/compiler/crystal/compiler.cr:155: undefined method 'merge!' for Set(String) (did you mean 'merge'?)
<tosmi> any hints?
Akzhan Abdulin
@akzhan
@tosmi to to use usual crystal cpmiler with cross-compile to x86_64-unknown-freebsd triple
From IRC (bridge bot)
@FromIRC
<tosmi> with changing the dir (creating a link) it failed with https://gist.github.com/tosmi/5d48acecece6e2e581b8267fc2141a94
<tosmi> ^with^without
Akzhan Abdulin
@akzhan
Strange. dlfcn should be found in triple files (add_target_path responds to this behavior).
Anyway you should upgrade your crystal o 0.22.x at least
From IRC (bridge bot)
@FromIRC
<tosmi> the thing is i try to get the latest version compiled, but i have to start with 0.19, that was the latest release providing freebsd binaries
<tosmi> but it seems i'm too stupid for this
<tosmi> compiling 0.20.0 with 0.19 worked (after fixing the dir) but compiling 0.20.1 with 0.20.0 failed with the merge error message