gmcabrita has quit [Quit: Connection closed for inactivity]
jemc has joined #ponylang
k0nsl has quit [Ping timeout: 268 seconds]
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
chemist69 has quit [Ping timeout: 260 seconds]
jemc has quit [Ping timeout: 255 seconds]
fluttershy_ has joined #ponylang
jemc has joined #ponylang
chemist69 has joined #ponylang
jemc has quit [Quit: WeeChat 1.4]
jemc has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
vaninwagen has joined #ponylang
<fluttershy_>
hello, what's new in distributed pony. When do we get to play with it :) ?
Umang has joined #ponylang
<Umang>
while running MediaWiki.patch from commnad prompt
<Umang>
on windows machine
<Umang>
to patch up the ponydocs
<Umang>
faicing below errors
<Umang>
Hunk #1 FAILED at 147. 1 out of 1 hunk FAILED -- saving rejects to file LocalSettings.php.rej
plietar has joined #ponylang
<Umang>
if anyone can help me on this it would be great
<Umang>
@SeanTAllen or anyone can help me
Umang has quit [Client Quit]
plietar_ has joined #ponylang
plietar has quit [Read error: Connection reset by peer]
fluttershy_ has quit [Quit: Page closed]
chemist69 has quit [Ping timeout: 252 seconds]
chemist69 has joined #ponylang
gmcabrita has joined #ponylang
atk has quit [Ping timeout: 240 seconds]
atk has joined #ponylang
plietar has joined #ponylang
plietar_ has quit [Ping timeout: 240 seconds]
plietar_ has joined #ponylang
plietar has quit [Read error: Connection reset by peer]
plietar has joined #ponylang
plietar_ has quit [Ping timeout: 255 seconds]
chemist69 has quit [Ping timeout: 255 seconds]
chemist69 has joined #ponylang
_andre has joined #ponylang
abbiya has quit [Ping timeout: 252 seconds]
aav has joined #ponylang
vaninwagen has quit [Ping timeout: 260 seconds]
kushalp has left #ponylang [#ponylang]
vaninwagen has joined #ponylang
staticassert has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar has quit [Ping timeout: 268 seconds]
plietar has joined #ponylang
jimdopango has joined #ponylang
jimdopango has quit [Quit: Page closed]
jemc has joined #ponylang
vaninwagen has quit [Ping timeout: 245 seconds]
amclain has joined #ponylang
martinjd has joined #ponylang
Matthias247 has joined #ponylang
chatter29 has joined #ponylang
<chatter29>
hey guys
<chatter29>
allah is doing
<chatter29>
sun is not doing allah is doing
<chatter29>
to accept Islam say that i bear witness that there is no deity worthy of worship except Allah and Muhammad peace be upon him is his slave and messenger
chatter29 has left #ponylang [#ponylang]
endformationage has joined #ponylang
martinjd has quit [Quit: Page closed]
Wangg has joined #ponylang
<Wangg>
I believe that ponylang should have an alternate backend so that it compiles faster
chemist69 has quit [Ping timeout: 240 seconds]
chemist69 has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar has quit [Ping timeout: 268 seconds]
<jemc>
Wangg: can you elaborate?
chemist69 has quit [Ping timeout: 255 seconds]
chemist69 has joined #ponylang
Xyliton has joined #ponylang
Praetonus has joined #ponylang
<Xyliton>
As there are no structs in pony... Is there any way I could get every public field of a class?
<SeanTAllen>
Xyliton: i'm a little confused by your statement. perhaps i dont understand how you use structs in c.
bngl has joined #ponylang
K4rolis has quit [Ping timeout: 240 seconds]
<SeanTAllen>
Xyliton: can you explain what the problem you are trying to solve is?
<Xyliton>
I'm trying to write a more... "easy" to use json lib which let's you (de)serialize a class from/into json
<Xyliton>
but I would have to be able to inspect said class
<Xyliton>
I might achieve that by forcing every class I want to serialize to implement a `fields()` function which returns a map of all the fields it want's to serialize, and a constructor which takes a map it uses to construct a new instance
<SeanTAllen>
and you want to do this at run time right Xyliton ?
<SeanTAllen>
what would happen if the json doesnt have some of the fields in the class?
<Xyliton>
it should throw an error, I think
<SeanTAllen>
or if the field is "foo" and in json its a string but its a u32 in the pony class?
<SeanTAllen>
there's no way in pure pony to do what you want at the moment as there is in no runtime class inspection
<Xyliton>
hm...
<SeanTAllen>
there's a request for an RFC
<SeanTAllen>
but from a security standpoint, that is very very tricky
<Xyliton>
security?
<SeanTAllen>
yes
<SeanTAllen>
introspection is a serious security concern
<SeanTAllen>
one of my favorite tricks with java programmers is using the reflection api to change the value of their private fields
<Xyliton>
oh, I see.
<Xyliton>
But you can't just inject code after it's compiled, like in java, right?
<SeanTAllen>
dont need to inject code to have fun with it
<SeanTAllen>
so to do what you want, would require c code at this point
<Xyliton>
hm... okay. Thanks anyway :)
<SeanTAllen>
you might be able to do something with the annotations that Praetonus added. not sure.
<Xyliton>
is it possible to pass around a type in pony?
<Xyliton>
as in, use a type itself as argument for a function
<jemc>
Xyliton: sort of, but probably not how you're hoping
<jemc>
you can use type parameters, but they must all be resolved at compile time
<jemc>
things like `Array[U8]`, for example
<Xyliton>
My idea was to "build" a (de)serializer and you chain-call it with a key:type pair.
<Xyliton>
once it's finalized it would have the types it needs to handle the serialization
<jemc>
as of right now, I think the only way you can do so is with code generation
<Xyliton>
hm...
<Xyliton>
I don't think I'm good enough with pony for code gen yet
<SeanTAllen>
its an interesting way to push the bounds of your knowledge
<jemc>
I'm working on tools that will make code gen easier and more foolproof
<jemc>
actually the `pony-ast` repo is a part of the basis for those tools
<Xyliton>
I'm not even sure how a user should use a json lib which incorporates code gen
<Xyliton>
do they generate models first and use them in their actual code?
<Xyliton>
or would the codegen hide itself magically?
<jemc>
Xyliton: same kind of workflow that capnproto & protobuf libs use
<Xyliton>
I never worked with any of those
<jemc>
you typically have a spec that you generate the code from, then check the generated code into version control alongside your hand-written source files
<jemc>
so you only need to run the code gen process when you change the spec
<Xyliton>
ohh
<SeanTAllen>
which makes code generation the most awesome thing ever
<SeanTAllen>
and also the worst thing ever
<SeanTAllen>
its fun like that
<Xyliton>
can I use pony-ast to generate code already?
<jemc>
no, you can't use it to generate code from the AST level yet, but there is some utility code you can steal from that repo to facilitate outputing code line-by-line
plietar has joined #ponylang
kr1shnak has joined #ponylang
chemist69 has quit [Ping timeout: 260 seconds]
Wangg is now known as hio
hio has left #ponylang ["Leaving"]
chemist69 has joined #ponylang
_andre has quit [Quit: leaving]
fluttershy_ has joined #ponylang
fluttershy_ has quit [Quit: Page closed]
Praetonus has quit [Quit: Leaving]
chemist69 has quit [Ping timeout: 255 seconds]
Xyliton has quit [Ping timeout: 240 seconds]
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar_ has joined #ponylang
plietar has quit [Read error: Connection reset by peer]