snsei has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
wmoxam has joined #crystal-lang
wmoxam has quit [Client Quit]
wmoxam has joined #crystal-lang
Oliphaunte has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
Philpax has quit [Ping timeout: 265 seconds]
Oliphaunte has quit [Remote host closed the connection]
wiiw has joined #crystal-lang
<FromGitter>
<drosehn> Well, here's my first attempt to use 'gitter'. I thought I'd use it for a question which seems way too simple to write up as "an issue".
<FromGitter>
<jwoertink> Welcome
<FromGitter>
<drosehn> Does crystal have some method which works like the exec() system call (the subroutine you'd call in a C program).
<FromGitter>
<drosehn> So what I want to do is give a command to run, and have that command replace the active process (which is my program that was written in crystal).
<FromGitter>
<drosehn> But from what I have read in the API docs, none of those replace the current process. They create a new process, but leave the current one running.
<FromGitter>
<drosehn> (I'm in no hurry on this. Just curious)
<FromGitter>
<drosehn> But let me skip that for a minute, and ask about 'icr'! Is that a command-line version of the 'crystal play' feature?
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<FromGitter>
<jwoertink> We had a discussion previously about the `Process.run` which I think does what you want because it wraps some C lib that does that. I was trying to find where that was being discussed, but not seeing it
<FromGitter>
<jwoertink> as for ICR, yes, that's the command line version of the web interface one
<FromGitter>
<drosehn> Hmm. I was looking for a way to call `Process.run` but have it skip the fork, but I could just call `LibC.execvp(command, argv)` on my own. That seems plausible.
<FromGitter>
<jwoertink> Yeah, that could work too
<FromGitter>
<drosehn> Too late tonight to try that, but it seems like a good pointer. Thanks!
<FromGitter>
<jwoertink> no problem
<FromGitter>
<kofno> Dang... I must be doing something wrong... I can't seem to get nested JSON.mapping to work.
<FromGitter>
<jwoertink> Got a code example @kofno ?
<FromGitter>
<kofno> working on isolating it now...
<FromGitter>
<kofno> ...ha! and the problem reveals itself.
<FromGitter>
<jwoertink> nice
Philpax has joined #crystal-lang
<FromGitter>
<kofno> when you specify a mapping like this --> JSON.mapping(process_id: { type: Int64, key: "processId" })
<FromGitter>
<kofno> you can't use a symbol for the key value --> JSON.mapping(process_id: { type: Int64, key: :processId })
* FromGitter
* kofno looks for a way to turn off emoji in gitter...
<FromGitter>
<kofno> so, the second example fails to match the processId key. But it's hard to diagnose because the error says "missing json attribute: processId at 0:0"
Oliphaunte has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
matp has joined #crystal-lang
Oliphaunte has joined #crystal-lang
matp has quit [Ping timeout: 244 seconds]
Oliphaunte has quit [Ping timeout: 252 seconds]
pawnbox has joined #crystal-lang
matp has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
matp has quit [Remote host closed the connection]
matp 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: 258 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Client Quit]
CompanionCube has quit [Ping timeout: 264 seconds]
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 276 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 240 seconds]
onethirtyfive has joined #crystal-lang
ponga has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox 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]
wiiw has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
mark_66 has joined #crystal-lang
ome has joined #crystal-lang
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
ponga has quit [Quit: Connection closed for inactivity]
Papierkorb has quit [Ping timeout: 240 seconds]
Papierkorb has joined #crystal-lang
Philpax has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 264 seconds]
onethirtyfive has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
<FromGitter>
<fibric> Hey, is the roadmap for crystal still current? Asking about the XML part.
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<jhass>
it pretty much still is, there's some basic libxml2 binding in the stdlib already, but it's not full-featured
Oliphaunte has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 244 seconds]
ome has quit [Quit: Connection closed for inactivity]
triangles has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Raimondii has joined #crystal-lang
zodiak has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
zodiak_ has quit [Ping timeout: 258 seconds]
<crystal-gh>
[crystal] jhass opened pull request #3079: Process improvements (master...process_improvements) https://git.io/v6Uqk
Papierkorb has quit [Ping timeout: 258 seconds]
Papierkorb has joined #crystal-lang
Papierkorb has quit [Ping timeout: 260 seconds]
Papierkorb has joined #crystal-lang
Oliphaunte has joined #crystal-lang
<FromGitter>
<fibric> Do we want to replace libxml2 with native crystal code?
Oliphaunte has quit [Ping timeout: 258 seconds]
<RX14>
replacing libxml2 would be nice but XML is very hard to parse, and the implementation would have to be pretty mature
<RX14>
parsing XML is more than implementing the spec, you have to be able to recover from user mistakes, because they're pretty common
Papierkorb has quit [Ping timeout: 252 seconds]
<RX14>
also I wish every protocol had a test suite for implementors, like HTTP/2 and websockets have
Papierkorb has joined #crystal-lang
ponga has joined #crystal-lang
<jhass>
also XML is the easy part, the fun starts with SGML
<RX14>
even rewriting libpcre would be easier than libxml2
zodiak_ has joined #crystal-lang
zodiak has quit [Ping timeout: 250 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
<FromGitter>
<fibric> Yeah you can find many xml variants in mime types too
<jhass>
XML is more of a SGML variant if anything than SGML a XML variant
<FromGitter>
<sdogruyol> Is there an Xml spec for parser implementors
<FromGitter>
<fibric> The reason I'm asking is because installing crystal fails or looks complete but sone features are broken. It turns out external libraries aren't probably found at build or execution time.
Oliphaunte has joined #crystal-lang
<jhass>
if you're less vague I'm confident we can find a way to fix it