jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang | Please consider participating in our mailing lists => https://pony.groups.io/g/pony
atk has quit [Quit: Well this is unexpected.]
atk has joined #ponylang
dipin has quit [Quit: dipin]
dipin has joined #ponylang
dipin has quit [Quit: dipin]
_whitelogger has joined #ponylang
jemc has joined #ponylang
endformationage has quit [Quit: WeeChat 1.9]
jemc has quit [Ping timeout: 260 seconds]
Sleeplessy has joined #ponylang
user10032 has joined #ponylang
user10032 has quit [Client Quit]
Sleeplessy has quit [Quit: WeeChat 1.4]
acarrico has quit [Remote host closed the connection]
vaninwagen has joined #ponylang
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
samuell has quit [Quit: Leaving]
ShalokShalom has quit [Ping timeout: 258 seconds]
Sleeplessy has joined #ponylang
<Sleeplessy> hello...
<Sleeplessy> i find there is no translation of "finaliser" in chinese..
<Sleeplessy> vaninwagen: in fact,i translate it to chinese
<Sleeplessy> sorry for my late reply
<vaninwagen> np :)
<Sleeplessy> so what should i do...there is no such word refers to finaliser...damn
<Sleeplessy> should i create one?or leave it english?
<vaninwagen> leave it english, i'd say
<vaninwagen> like you would with "actor"
<Sleeplessy> but vaninwagen ,there is a translation of actor in chinese...
<Sleeplessy> in programming field situation..
<vaninwagen> ah ok, i didn't know
<vaninwagen> nonetheless, if there is no translation i think it's ok if you use the english term, especially for such technical terms
<Sleeplessy> actor (model) has,finaliser doesn't,data race is in argueing
<Sleeplessy> arguing*
<Sleeplessy> it is hard to choose wether leave it all english or just translate those have
<vaninwagen> yeah, i can imagine. sorry i don't know any chinese at all and thus can hardly help here
sarna has joined #ponylang
<Sleeplessy> np
<Sleeplessy> so after i finishing my translation work i would check it several times and give you a github link :p
<Sleeplessy> it is forked from the official doc repo
<sarna> hey guys, how would I read a file line by line? I've found something in the docs but there are no examples
<vaninwagen> Sleeplessy, looking forward to it
<vaninwagen> sarna yes, this is the intended way to iterate over lines in a file. but beware that this class has severe performance problems right now: https://github.com/ponylang/ponyc/issues/2185
<vaninwagen> sarna though there is a workaround until this issue is resolved: https://github.com/ponylang/ponyc/issues/2185#issuecomment-332158914
<sarna> vaninwagen: ow heck. and in the next comment "Yes, using Reader speeds up execution, but I now have problems with memory usage."
<sarna> thanks though
<sarna> is there any way of including a text file at compile time? like Rust's include_str! macro
<vaninwagen> not that i know of, you would have to put it in a triple quoted string. You could automate that from within a makefile, creating a primitive that only contains the string generated from a text-file
<sarna> I haven't seen a pony makefile yet
<vaninwagen> i mean a general GNU-Makefile
_andre has joined #ponylang
jemc has joined #ponylang
<sarna> ah, I see. it wouldn't be worth it though, I think
<jemc> Sleeplessy: just checking - have you tried translating "finalizer" instead of "finaliser"? It's a more commonly recognized spelling
<jemc> when I use google translate on "finaliser", it incorrectly guesses that the input is french instead of english; when I use "finalizer", it gives the Chinese equivalent as 终结
<xcombelle> jemc: you can set the source language in google
<jemc> xcombelle: sure, but the point of mentioning the wrongly guessed language was to illustrate that "finaliser" is a much less common english spelling for the term
<jemc> FWIW, when forcing the language as English on the input, google translate wasn't able to come up with a Chinese result
<xcombelle> @jemc it is just that finaliser in french is a very common workd
<xcombelle> and is not the computer world
dipin has joined #ponylang
<jemc> xcombelle: note my latest comment though - google translate gave a translation for "finalizer" (english), but wasn't able to recognize/translate "finaliser" (english)
Sleeplessy has quit [Quit: WeeChat 1.4]
benq has joined #ponylang
acarrico has joined #ponylang
Praetonus has joined #ponylang
<SeanTAllen> Pony 0.19.3 has been released! https://www.ponylang.org/blog/2017/10/0.19.3-released/
<vaninwagen> SeanTAllen ᕕ( ᐛ )ᕗ
vaninwagen has quit [Ping timeout: 248 seconds]
slfritchie has joined #ponylang
samuell has joined #ponylang
user10032 has joined #ponylang
endformationage has joined #ponylang
Praetonus has quit [Ping timeout: 240 seconds]
Praetonus has joined #ponylang
endformationage has quit [Quit: WeeChat 1.9]
endformationage has joined #ponylang
<sarna> uh, I'm sorry guys, but I fail with even the most trivial things. how do I convert an int to a string?
ShalokShalom has joined #ponylang
<sarna> SeanTAllen: why does a.string() work, but 1.string() does not?
<SeanTAllen> Im not sure exactly what you tried but this works... https://playground.ponylang.org/?gist=4231aca9cb5c714eaa77288bd98a5e43
<sarna> oh, I have to manually specify it's U32.
<sarna> my bad
<jemc> sarna: yeah, all number literals have to be inferrable from their context in some form
<jemc> when in doubt, you can make it explicit using the "constructor" syntax for numbers like `U32(1)`, which translates to `U32.create(1)`
<sarna> thank you very much
<sarna> I was very excited about this language, though, having read the linkedin piece about the end of causality, I'm a little worried now. have all the original contributors abandoned the project?
<sarna> I mean it's still a good language, I'm just curious about its current status
<SeanTAllen> Sylvan has always been the heart and soul of Pony. He is still actively involved.
jmiven has quit [Quit: co'o]
jmiven has joined #ponylang
<SeanTAllen> There's an email to the user list from a while back where I specifically addressed that Linkedin post: https://pony.groups.io/g/user/message/618?p=Relevance,,causality,20,2,0,6182872
<sarna> I'm so glad to hear that :)
<sarna> uh, one more thing though - I want to iterate over a string. what's the right way of doing this? I suppose it's not .values()?
<SeanTAllen> you mean over the characters in a string?
<sarna> yes
vaninwagen has joined #ponylang
<SeanTAllen> `runes` will get you an iterator over the codepoints in the string
<sarna> and how would I convert them to the readable form again? I guess it has something to do with from_utf32, I don't know how to apply it though
<sarna> we should have more examples in the docs
<SeanTAllen> what do you mean by "readable form again" sarna?
<SeanTAllen> what is it you want to do?
<SeanTAllen> you might also want `values()`
<SeanTAllen> thats the bytes
<SeanTAllen> depends on what your string is.
<SeanTAllen> is it ascii? unicode?
<SeanTAllen> pony strings dont have an encoding, that is left to the user, so its a little hard to answer your question
<vaninwagen> sarna do you mean something like this: http://playground.ponylang.org/?gist=1bf8906f7cd98276139fa4d359dd6f37 filtering some codepoints and then creating another string?
<sarna> SeanTAllen: Unicode. sorry, I didn't specify - I meant, like, converting 41 to (
<sarna> vaninwagen: thank you! I'll definitely make use of it
samuell has quit [Remote host closed the connection]
benq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_andre has quit [Quit: leaving]
vaninwagen has quit [Ping timeout: 248 seconds]
user10032 has quit [Quit: Leaving]
TheNet has joined #ponylang
benq has joined #ponylang
Praetonus has quit [Quit: Leaving]