copy` has quit [Quit: Connection closed for inactivity]
rurban has joined #ponylang
rurban has quit [Client Quit]
jemc has joined #ponylang
walden has joined #ponylang
walden has quit [Quit: Page closed]
jemc has quit [Ping timeout: 264 seconds]
jemc has joined #ponylang
jemc has quit [Ping timeout: 246 seconds]
Perelandric has quit [Ping timeout: 250 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
jemc has joined #ponylang
mcguire has quit [Ping timeout: 260 seconds]
rurban has joined #ponylang
rurban has quit [Client Quit]
graaff has joined #ponylang
SilverKey has joined #ponylang
SilverKey has quit [Quit: Halted.]
jemc has quit [Ping timeout: 250 seconds]
rurban has joined #ponylang
rurban has quit [Client Quit]
Applejack_ has joined #ponylang
Applejack_ has quit [Ping timeout: 272 seconds]
Applejack_ has joined #ponylang
rurban has joined #ponylang
rurban has left #ponylang [#ponylang]
Applejack_ has quit [Ping timeout: 260 seconds]
rurban1 has joined #ponylang
Applejack_ has joined #ponylang
Applejack_ has quit [Ping timeout: 272 seconds]
rurban1 has left #ponylang [#ponylang]
rurban has joined #ponylang
c355e3b has joined #ponylang
Applejack_ has joined #ponylang
Applejack_ has quit [Ping timeout: 246 seconds]
Matthias247 has joined #ponylang
Applejack_ has joined #ponylang
Applejack_ has quit [Ping timeout: 252 seconds]
gsteed has joined #ponylang
Applejack_ has joined #ponylang
rurban has quit [Quit: Leaving.]
rurban has joined #ponylang
rurban1 has joined #ponylang
rurban has quit [Ping timeout: 244 seconds]
rurban has joined #ponylang
rurban1 has quit [Ping timeout: 244 seconds]
rurban1 has joined #ponylang
rurban has quit [Ping timeout: 276 seconds]
Applejack_ has quit [Ping timeout: 240 seconds]
rurban1 has quit [Quit: Leaving.]
paperclipbadger has joined #ponylang
<paperclipbadger>
I've just installed pony on Windows, and when I compile and run stdlib.exe 2 test fail: net/TCP.expect and net/TCP.writev. Is this to be expected?
<SeanTAllen>
paperclipbadger: it shouldn't be. but our windows test runner on appveyor hasnt been running tests (something we recently discovered) so its possible that something got broken. do they repeatably fail?
rurban has joined #ponylang
<paperclipbadger>
Yep. The error message is
<paperclipbadger>
**** FAILED: net/TCP.expect Action failed: client connect Complete(false) called
<SeanTAllen>
Do you have a firewall running?
<paperclipbadger>
Yes, but I'm fairly sure it's not interfering. Hold on, I'll turn it off and test again.
sozumos has joined #ponylang
<paperclipbadger>
Tests still fail with the firewall off.
sozumos has left #ponylang [#ponylang]
<SeanTAllen>
that's very odd. hmmm... should be seeing other tests fail as well.
<SeanTAllen>
paperclipbadger: this is the latest checkout of master from GH?
<SeanTAllen>
paperclipbadger: are you able to run the echo server example?
<SeanTAllen>
paperclipbadger: it looks like it can open the server for the test but then times out connecting to it. which feels like a firewall issue.
<paperclipbadger>
I get a lot of LNK4099 warnings when I compile it, but it runs.
<paperclipbadger>
Not entirely sure how one would test to see if it was working, but when I point a web browser at it it prints "connection accepted", "data received, looping it back" and "server closed".
rurban1 has joined #ponylang
rurban has quit [Ping timeout: 244 seconds]
Applejack_ has joined #ponylang
rurban1 has quit [Quit: Leaving.]
Applejack_ has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
rurban has joined #ponylang
paperclipbadger1 has joined #ponylang
paperclipbadger has quit [Ping timeout: 250 seconds]
paperclipbadger1 has quit [Client Quit]
paperclipbadger has joined #ponylang
Praetonus has joined #ponylang
michael_campbell has joined #ponylang
Applejack_ has joined #ponylang
Applejack_ has quit [Ping timeout: 276 seconds]
rurban1 has joined #ponylang
rurban has quit [Ping timeout: 276 seconds]
emancu has joined #ponylang
rurban has joined #ponylang
rurban1 has quit [Ping timeout: 276 seconds]
rurban has quit [Client Quit]
<SeanTAllen>
LNK4099 warnings?
nyarum has joined #ponylang
nyarumes has quit [Ping timeout: 258 seconds]
Applejack_ has joined #ponylang
<Praetonus>
Anybody know how the compiler finds the directory containing the stdlib packages? I looked at the source but I can't find it
<jemc>
Praetonus: I've seen it before - one sec and I'll find it
<jemc>
Praetonus: it's part of `add_exec_dir` in `pkg/package.c`
<Praetonus>
Thanks
<jemc>
no problem
graaff has quit [Quit: Leaving]
<paperclipbadger>
The LNK4099 warnings were something to do with being unable to find a .pdb and linking as if no debug info. I recompiled ponyc and they seem to have gone away.
gsteed has quit [Quit: Leaving]
rurban has joined #ponylang
rurban has quit [Quit: Leaving.]
rurban has joined #ponylang
TwoNotes has joined #ponylang
Perelandric has joined #ponylang
<ndr>
if I have an Array ref, how do I get an iso clone of it?
<TwoNotes>
.clone() ?
<ndr>
TwoNotes, that works in tests actually, so I recognise the problem must be something else: the error points to "board" which is a class (GameState) field: "can't read a field through GameState tag: let new_board: Array[Cell] iso = recover board.clone() end"
<ndr>
which makes me thing the method I'm implementing is callable on a tag but the .clone isn't
Applejack_ has quit [Ping timeout: 246 seconds]
rurban has quit [Quit: Leaving.]
rurban has joined #ponylang
rurban has quit [Quit: Leaving.]
<TwoNotes>
Sometimes if you can't "read a field thru a tag', making a local "let" copy *does* work. Not sure why
jemc has quit [Ping timeout: 276 seconds]
<Praetonus>
ndr: You can't access a ref inside of a recover block because that could be unsafe. That's why the compiler tells you that your object is a tag. Your object must be sendable (iso, val) to allow using it inside of the recover block
Applejack_ has joined #ponylang
paperclipbadger has quit [Read error: Connection reset by peer]
paperclipbadger has joined #ponylang
<TwoNotes>
Sometimes I wish the default cap for some constructors was 'iso' instead of 'ref'. You can always turn iso into ref, but not the other way around
unbalancedparen has joined #ponylang
emancu_ has joined #ponylang
Applejack_ has quit [Ping timeout: 244 seconds]
emancu has quit [Ping timeout: 264 seconds]
Applejack_ has joined #ponylang
TwoNotes has left #ponylang [#ponylang]
Applejack_ has quit [Ping timeout: 260 seconds]
<runehog>
yeah, I'm having trouble seeing why you'd want constructors with anything but 'iso'
rurban has joined #ponylang
Applejack_ has joined #ponylang
<paperclipbadger>
How do I use a package in the parent directory?
<shodan45>
Scramblejams: or for that matter, which debian release? :)
<Scramblejams>
Sid, llvm 3.6.2
<Scramblejams>
I vaguely remember having to install various header packages, but don't remember what they were :-(
<shodan45>
actually..... looking at my own paste(err gist).... I think it's trying to use "cc" to link(?), and my "cc" is pointing to "gcc-5"
<shodan45>
is that OK? or should it be using LLVM?
<Scramblejams>
LLVM
<shodan45>
err clang?
<shodan45>
aha :)
* shodan45
fumbles around with /etc/alternatives
<shodan45>
hrm.... /usr/bin/cc -> /usr/bin/gcc-5.... no alternatives middle-man
<shodan45>
what does "cc" point to for you?
<shodan45>
Scramblejams: ^
<Scramblejams>
gcc, actually
<shodan45>
haha
<Scramblejams>
But I don't think Pony is supposed to be using that at all during normal operation -- AFAIK, pony is LLVM-only.
<Scramblejams>
So if I want to make an actor globally available in my program, what's the best way to do that? Registrar, probably, but I have to create a registrar instance, and then pass it to every other asset in the program that'll need access to that actor, right?
<Scramblejams>
I was hoping for something more along the lines of Erlang's gen_server:call(some_atom, Yadda)... Rather than being forced to pass the same reference around everywhere.
<shodan45>
does pony work with musl? or just glibc?
<shodan45>
I typically use opensuse for desktop/gui stuff and alpine or centos for server stuff
<shodan45>
and I think each one of those won't work with pony for different reasons :(
<Praetonus>
Scramblejams: One of the key aspect of Pony is object capabilities. You can only access objects (or actors) that you created or were given access to by someone else. Global state would completely screw that up
<Scramblejams>
Praetonus: So it's expected that there's gonna be some pass-this-resource-you-want-everywhere-to-everything-you-make going on in Pony, I take it.
<Scramblejams>
No static methods or variables, as it were.
<runehog>
static functions, yes -- Primitives can have functions. but no static variables.
<SeanTAllen>
Scramblejams: yes, that is expected. if it wasnt provided to you, you cant do it.
<SeanTAllen>
shodan45: no idea if it works with musl. If you give it a go and it works, I'd be interested to know. Its certainly not something that is tested against.
<shodan45>
SeanTAllen: it didn't :(
<SeanTAllen>
Scramblejams: what do you mean by "static methods"?
<SeanTAllen>
shodan45: that doesnt surprise me
<shodan45>
SeanTAllen: unfortunately I deleted the VM, but IIRC it was a generic segfault or maybe illegal instruction
<shodan45>
now I can't get ubuntu ISO to boot in a VM..... somehow pony is turning out to be very difficult to get working :/
<shodan45>
hah, maybe I should try windows xD
<Scramblejams>
SeanTAllen: Oh, same as "static functions." I'll have to look into primitives. And no plan for parameterized modules, I take it?
<Scramblejams>
shodan45: Sorry for off-topic, but what's it like living with Alpine? Like, how often do you need to get something that isn't in their repo? What's it like upgrading between versions? Do they backport security fixes like Debian, or do they force you to roll versions to keep up?
<shodan45>
Scramblejams: alpine is great, overall
<shodan45>
but yeah, some things just don't work, mostly due to musl
<shodan45>
upgrading versions is very simple
<shodan45>
they do backports, yes
<shodan45>
community is pretty good too
<shodan45>
my favorite part is the "installer"
Applejack_ has quit [Ping timeout: 244 seconds]
paperclipbadger has left #ponylang [#ponylang]
<Scramblejams>
Cool, I'll check it out, thanks.
<shodan45>
alpine feels like linux used to, years ago
<shodan45>
simpler times, etc.
<shodan45>
no systemd ;)
<Scramblejams>
I started with RedHat 5.2, hope it doesn't go quite that far back. :-D
<Scramblejams>
(Shoulda switched to Debian from the beginning! and other regrets...)
<shodan45>
Scramblejams: hah, me too... or maybe 5.1? 5.0?
<shodan45>
I don't mind RHEL/centos, at least up to 6
<shodan45>
it's what I use at work
<shodan45>
I can't believe how much trouble I'm having getting a working ponyc
<Scramblejams>
I'm looking forward to Pony moving into its polish phase myself...
<Scramblejams>
Up-to-date binaries is a part of that.
<shodan45>
yeah, that would help... although I typically install from source for things not packaged for my distro
<SeanTAllen>
Scramblejams: what would you do with parameterized modules?
<SeanTAllen>
Scramblejams: we welcome help in adding polish. will get there much quicker with help. particularly around documentation, release pipeline etc.
<Scramblejams>
SeanTAllen: Make something available to myself without having to explicitly pass it around? :-D
Matthias247 has quit [Read error: Connection reset by peer]
unbalancedparen has quit [Ping timeout: 240 seconds]
unbalancedparen has joined #ponylang
Praetonus has quit [Quit: Leaving]
unbalancedparen has quit [Ping timeout: 264 seconds]
<SeanTAllen>
that would be going against the basic model that Pony has, so no, that wouldn't be happening.
<SeanTAllen>
capabilities is about only having access to that which you have been given access to.
<SeanTAllen>
you can know a section of code has no access to the file system or network or whatever because you haven't given it access.
<SeanTAllen>
there's plenty to be done there though.
<SeanTAllen>
the process package lets you bypass that file capability access for example, which isn't really a good thing.
<SeanTAllen>
in terms of polish Scramblejams, i think most of that is going to be driven by the polish that people add to get work done. a lot of polish is coming from what we need at sendence. but there's more beyond that that will take effort around releases, documentation etc were a lot will have to come as the community grows because there's a lot to do and not many
<SeanTAllen>
people doing it at the moment.
<SeanTAllen>
shodan45: if you get it working on any particular distro that we dont have instructions for, please submit a PR against the install docs. we could definitely use help there. ubuntu seems to be the easiest for most folks.