mgarciaisaia has left #crystal-lang [#crystal-lang]
<thelonelyghost>
anyone have experience with C bindings here?
<thelonelyghost>
I see a bunch of great docs on the crystal site for it, but was wondering if there were any pitfalls I should watch out for.
thelonelyghost has left #crystal-lang [#crystal-lang]
sorbo_ has joined #crystal-lang
Raimondii is now known as Raimondi
sorbo_ has quit [Remote host closed the connection]
sp4rrow has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mverzilli has joined #crystal-lang
mverzilli has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
elia has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
onionhammer1 has quit [Ping timeout: 246 seconds]
onionhammer1 has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
zeno_ has joined #crystal-lang
zeno_ has quit [Client Quit]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mark2 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ozra has joined #crystal-lang
rok has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 252 seconds]
rok has quit [Quit: rok]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
kulelu88 has joined #crystal-lang
kulelu88 has joined #crystal-lang
<jhass>
BlaXpirit: thanks, will think about it, though I'm hesitant to include half the compiler in the bot (as it's not sandboxed and has potential compile time code execution through macros), and doing it for every run is a bit overkill (too slow I'd expect)
<tilpner>
jhass - Are you running DeBot? I'm curious, do you restart it periodically?
<jhass>
tilpner: well, it still crashes sometimes ;)
<tilpner>
jhass - Do you notice memory leaks during long uptime (if it doesn't crash)?
<jhass>
I didn't watch, but no, nothing severe
<tilpner>
Do you know if there are plans to migrate to a precise GC?
<jhass>
I don't know of any near term plans to change the GC
<tilpner>
Thanks for answering. I might just be overestimating the leaks of a conservative GC in real-word usage.
<jhass>
;)
kulelu88 has left #crystal-lang ["Leaving"]
luislavena has quit [Quit: Leaving]
<BlaXpirit>
jhass, just put it in carcin
<BlaXpirit>
like a separate language or something
<BlaXpirit>
yeah it's gonna introduce many special cases but what can u do
<RX14>
BlaXpirit, uhh, you can isolate it properly using containers
<BlaXpirit>
uhhhh k
<RX14>
pass the source into a crystal binary which compiled and executes the code
<BlaXpirit>
jhass, and no, it's not slow at all
<BlaXpirit>
like 5% overhead at most
<crystal-gh>
[crystal] asterite pushed 3 new commits to master: https://git.io/vVY8o
<crystal-gh>
crystal/master 4589140 Ary Borenszweig: Compiler: not (!) has now its definition hardcoded in the compiler
<crystal-gh>
crystal/master f1b05c9 Ary Borenszweig: Compiler: not (!) does now type filtering. Fixes #1196...
<crystal-gh>
crystal/master a858b06 Ary Borenszweig: `nil?` is now hardcoded to mean `is_a?(Nil)`. Removed `Pointer#nil?` (use `Pointer#null?` instead). Fixes #2387
<Davy_CC>
jhass, BlaXpirit: I'm running the user group in Taiwan, and I'm invited to give a talk about Crystal in a university. Do you have any ideas?
hangyas has joined #crystal-lang
mverzilli has joined #crystal-lang
hangyas has quit [Ping timeout: 240 seconds]
hangyas has joined #crystal-lang
marcosdsanchez has left #crystal-lang [#crystal-lang]
pawnbox has quit [Remote host closed the connection]
<asterite>
jhass: BlaXpirit: one alternative is to have a mode to instruct the compiler to not give errors if you declare a `def` inside another expression. Of course that would lead to different behaviour than the normal behaviour, but you'll be able to run all code. We have a similar issue in the playground, a macro call can't be instrumented if it expands to a class/def defiinition
<asterite>
In fact, I think now I regret that decision. I know it's not good to define a `def` inside an `if`, but if it doesn't error then it allows programs and code to be composable, always, and this is specially useful for tools like carc.in and the playground. And also, it's not like it's common to define a `def` inside an `if`, and if it behaves in an unexpected way... well, nevermind, you shouldn't do that (maybe it could be a warning and we c
<asterite>
an have a flag to supress that warning)
<asterite>
(I think the warning + flag solution is the one I like most so far)
<travis-ci>
crystal-lang/crystal#a858b06 (master - `nil?` is now hardcoded to mean `is_a?(Nil)`. Removed `Pointer#nil?` (use `Pointer#null?` instead). Fixes #2387): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/119509997
<BlaXpirit>
> Syntax error in ./samples/2048.cr:226: Bug: self.is_a?(::Nil) should be a call
Raimondi has quit [Quit: The road to wisdom?—Well, it's plain and simple to express: Err and err and err again, but less and less and less. — Piet Hein]
Raimondi has joined #crystal-lang
sorbo_ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
onionhammer1 has joined #crystal-lang
sp4rrow has joined #crystal-lang
elia_ has quit [Quit: Computer has gone to sleep.]
sorbo_ has quit [Remote host closed the connection]