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
<SeanTAllen> would need more information bb010g
<SeanTAllen> can you supply some information about your tools and environemtn
<bb010g> What else? Compiling on aarch64.
<SeanTAllen> i dont have access to an aarch64 system
<SeanTAllen> what operating system are you running on this?
<bb010g> Clang 6.0.0
<SeanTAllen> what operating system?
<bb010g> Android, with compilation via Termux (which is why I'm not on LLVM 3.9)
<SeanTAllen> Android isnt a supported operating system
<SeanTAllen> you would need to port
<SeanTAllen> cpu_set_t is defined by your operating system
<bb010g> But AARCH64 is. Nothing so far should be different from a normal system.
<bb010g> Ah, cool. I'll look into that.
<SeanTAllen> good luck!
<bb010g> Looks like Android provides a definition in usr/include/sched.h
<SeanTAllen> that makes sense
<SeanTAllen> that is where it is defined on linux
<SeanTAllen> in platform.h
<SeanTAllen> starting with figuring out what is defined instead of __linux__
<SeanTAllen> and then for that defining PLATFORM_IS_LINUX will probably get you a long way.
<SeanTAllen> there still might be things you need to do to port
<SeanTAllen> but its a good start
<SeanTAllen> it should be really straightforward if you have experience porting from one Unixen to another
<SeanTAllen> if you don't it's probably a good chance to learn
<bb010g> PLATFORM_IS_LINUX is defined, though, as L45 is where the compile error is
<bb010g> It's probably Termux's weird prefix getting in the way of the include?
<SeanTAllen> sorry i dont know what you mean by line 45 is where the compile erorr is
<SeanTAllen> there's a lot of files
<SeanTAllen> line 45 of what?
<bb010g> Line 45 of common/threads.h, which is inside the PLATFORM_IS_LINUX if block
<bb010g> It's right after a <sched.h> include
<SeanTAllen> then cpu_set_t apparently isnt being defined in <sched.>
<SeanTAllen> sched.h
<bb010g> Let me pastebin it; I'm pretty sure it's defined
<SeanTAllen> apparently not
<SeanTAllen> probably wrapped in an ifdef that isnt triggered
<SeanTAllen> that would be my guess without seeing it
<bb010g> I'm going to try messing around with include dirs while you're taking a look
<SeanTAllen> can you gist that file or something?
<SeanTAllen> im not in the habit of downloading files that my browser thinks are binary from the internet
<bb010g> Just view-source:$URL it if you're in Firefox
<bb010g> It's a normal header file, and you'll either be able to read it or will see a bunch of binary-as-ASCII gibberish
<SeanTAllen> i hit that url and it prompts me to download a file nothing else
<bb010g> Weird. Let me try Riot's file upload
<SeanTAllen> same thing
<SeanTAllen> well except now its a text file as comapred to binary
<SeanTAllen> right so cpu_set_t is inside a #if defined(__USE_GNU)
<bb010g> Yeah, adding in an include dir didn't change anything
<bb010g> I can't read
<SeanTAllen> you need __USE_GNU defined
<bb010g> At least I can reuse the Android detection stuff I just set up for that
<SeanTAllen> good luck, im stepping away for a while
<bb010g> Thanks for your help!
<bb010g> Yeah, it's building now
dom96 has quit [Ping timeout: 240 seconds]
<SeanTAllen> if its a simple port, we'd definitely be open to a PR that add support (although we might ask for a couple changes)
<SeanTAllen> for real stepping away now
zetashift has quit [Ping timeout: 260 seconds]
dom96 has joined #ponylang
dom96 has joined #ponylang
Shorttail has joined #ponylang
<bb010g> Looks like the next step is getting libexecinfo working, which Alpine also uses
<bb010g> libunwind was brought up in https://github.com/ponylang/ponyc/pull/1844 , and Termux currently packages that, but not libexecinfo
<Shorttail> Is it possible to refer to #define constants in FFI?
<SeanTAllen> @Shorttail no
<SeanTAllen> you'll need to deplicate
<Shorttail> Thanks
pzel has joined #ponylang
kiwimec has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaro has quit [Ping timeout: 245 seconds]
btbytes has joined #ponylang
btbytes has quit [Quit: Textual IRC Client: www.textualapp.com]
kiwimec has joined #ponylang
pzel has quit [Ping timeout: 276 seconds]
kiwimec has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vaninwagen has joined #ponylang
vaninwagen has quit [Ping timeout: 268 seconds]
kiwimec has joined #ponylang
kiwimec has quit [Client Quit]
kiwimec has joined #ponylang
kiwimec has quit [Client Quit]
endforma1 has quit [Quit: WeeChat 1.9.1]
pong_ has joined #ponylang
<pong_> Any enterprises already using or planning to use pony?
pong_ has quit [Client Quit]
Utkarsh_kul has joined #ponylang
<Utkarsh_kul> /JOIN Utkarsh_kul
kiwimec has joined #ponylang
Utkarsh_kul has quit [Quit: Page closed]
kiwimec has quit [Client Quit]
n00b has joined #ponylang
kiwimec has joined #ponylang
kiwimec has quit [Client Quit]
kiwimec has joined #ponylang
kiwimec has quit [Client Quit]
n00b has quit [Ping timeout: 260 seconds]
kiwimec has joined #ponylang
kiwimec has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kiwimec has joined #ponylang
kiwimec has quit [Client Quit]
vaninwagen has joined #ponylang
kiwimec has joined #ponylang
kiwimec has quit [Client Quit]
kiwimec has joined #ponylang
kiwimec has quit [Client Quit]
kiwimec has joined #ponylang
<dave24> Is there some way to iterate over a collection containing isos with a for loop without getting an `iso!` of each item. I can do it with a while loop and indexing items manually but it's not as nice.
<kiwimec> @vaninwagen just checked out make-compile-0.22.X and it compiles nicely for me, thank you, now to have a rummage around the code ...
<vaninwagen> dave24: would it work for you to remove the items from the collection?
<vaninwagen> dave24: because there is no other way, as it would require aliasing, which might lead to nasty unsafe situations that pony is here to prevent you from
<vaninwagen> kiwimec: i also have to dive into it at some point
kiwimec has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dave24> vaninwagen: right, thats fine then. I guess I could make a helper function that does the loop and applies a given function to each item, that would be a little more terse.
<vaninwagen> i created this one for that use case https://github.com/mfelsche/ponycheck/blob/master/ponycheck/poperator.pony
<dave24> aaah, worging
<vaninwagen> great! :)
ndrwsh has joined #ponylang
Shorttail has quit [Ping timeout: 260 seconds]
<SeanTAllen> Pong_: a couple. Not many at this time.
kiwimec has joined #ponylang
<ndrwsh> I kinda ported "intersect" from Scala. I wonder is that code "Ponic" enough? :) (Python -- "Pythonic", Pony -- "Ponic"? )
<vaninwagen> ndrwsh: i'd prefer the term equine
<SeanTAllen> That's horrible vaninwagen
<vaninwagen> horrible but in a good way
<vaninwagen> ndrwsh: in line 32 you can use https://stdlib.ponylang.org/builtin-String/#push_utf32
<vaninwagen> sorry, line 31
<ndrwsh> output.push_utf32(rune)
<SeanTAllen> Horrible in an awful way
SenasOzys has quit [Ping timeout: 256 seconds]
<kiwimec> @vaninwagen so idiomatic pony is 'equine'? I love it.
kiwimec has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vaninwagen> kiwimec: isn't it? but don't tell SeanTAllen
ndrwsh has quit [Ping timeout: 260 seconds]
SenasOzys has joined #ponylang
krig[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
xbdd has quit [Ping timeout: 256 seconds]
zetashift has joined #ponylang
ndrwsh has joined #ponylang
<ndrwsh> I feel like pony lang is too much fun
<SeanTAllen> glad you are enjoying it ndrwsh
ndrwsh has quit [Ping timeout: 260 seconds]
zzzzzzeeetttt has joined #ponylang
zetashift has quit [Ping timeout: 256 seconds]
xbdd has joined #ponylang
pzel has joined #ponylang
<SeanTAllen> Pony 0.22.6 has been released. Upgrading is recommended: https://www.ponylang.org/blog/2018/06/0.22.6-released/
<vaninwagen> ᕕ( ᐛ )ᕗ
endformationage has joined #ponylang
xbdd has quit [Ping timeout: 260 seconds]
xbdd has joined #ponylang
xbdd has quit [Ping timeout: 240 seconds]
nisanharamati has joined #ponylang
xbdd has joined #ponylang
brainproxy has joined #ponylang
xbdd has quit [Ping timeout: 268 seconds]
vaninwagen has quit [Ping timeout: 276 seconds]
xbdd has joined #ponylang
tokenrov1 is now known as tokenrove
jemc has joined #ponylang
Chargedpeptide has joined #ponylang
ndrwsh has joined #ponylang
<Chargedpeptide> Hey, I've hit a bump with array.contains in pony while trying to build a file-ending filter.
<Chargedpeptide> I've tried to put together a code example over on: https://pastebin.com/pB35323z
<Chargedpeptide> Anyone with insight would be most appreciated, I've been stumped for longer than I'd like to admit.
<SeanTAllen> @Chargedpeptide can you open an issue?
jaro has joined #ponylang
SenasOzys has quit [Ping timeout: 256 seconds]
<Chargedpeptide> @SeanTAllen, certainly if you think that's the right way to go.
zzzzzzeeetttt has quit [Ping timeout: 245 seconds]
SenasOzys has joined #ponylang
<ndrwsh> @Chargedpeptide I can make it "true" if I pass predicate to builtin/array.pony::fun contains (line 505)
<ndrwsh> instead of default "l is r" I pass "l == r"
zzzzzzeeetttt has joined #ponylang
<ndrwsh> but if I patch builtin/array.pony to have "l == r" then I will get "array.pony:508:44: couldn't find 'eq' in 'A' "
droman has joined #ponylang
<Chargedpeptide> Thank you @ndrwsh, an "==" check passes in a loop as well. I'd like to understand why the difference though if you have some insight there.
<ndrwsh> Pony features two forms of equality: by structure and by identity. Identity equality checks in Pony are done via the __is__ keyword. So "l is r" only is true if you pass reference to second element of array (which is ".png"). But "l == r" just verifies that two items have the same value.
<Chargedpeptide> It sounds like the is checks full identity (i.e. same object) while == checks equivalency? Equivalent to the difference between a "==" and a ".equals" in Java for example? Also, your time is much appreciated.
<ndrwsh> yes
<Chargedpeptide> Thank you. Have a good night.
Chargedpeptide has quit [Quit: Page closed]
SenasOzys has quit [Ping timeout: 260 seconds]
<SeanTAllen> Chargedpeptide, seems like you got your answer yes?
SenasOzys has joined #ponylang
<ndrwsh> well I have a question why collections/map.pony can use H.eq(k, key) in "_search" in "contains", but builtin/array.pony uses "l is r" in "contains" and users have to pass lambda in order to use "contains" :(
zzzzzzeeetttt has quit [Ping timeout: 245 seconds]
<SeanTAllen> The answer is in the types
<ndrwsh> I think array.contains without lambda would be better :)
<SeanTAllen> well
<SeanTAllen> thats one theory
<SeanTAllen> but then
<SeanTAllen> you couldnt put anything into an array that wasn't Equatable
<SeanTAllen> HashEq requires an equatable
khan_ has joined #ponylang
<ndrwsh> so we need both "array" and "arrayEq"
khan_ has quit [Remote host closed the connection]
khan_ has joined #ponylang
<SeanTAllen> or to provide a lambda to contains which sounds a lot better to me, as almost nothing in Array needs to do equality
<SeanTAllen> unlike a Hash which requires equality all over the place
<ndrwsh> ok
khan_ has quit [Read error: Connection reset by peer]
<SeanTAllen> find, rfind, and contains are the only 3 things that need in Arraay
<SeanTAllen> * Array
<ndrwsh> by the way, I have read "Low Hanging Fruit" in https://www.ponylang.org/contribute/ and I want to ask can you please suggest "Lowest Hanging Fruit" bc I am too shy to just grab an issue at this moment... but I want to contribute
<SeanTAllen> hmmm
<SeanTAllen> hehe
<SeanTAllen> i got one
<SeanTAllen> https://github.com/ponylang/ponyc/issues/2759 in particular would be good
<SeanTAllen> any of the beginner friendly ones in there
<SeanTAllen> If you know C and want to get dirty in the runtime: https://github.com/ponylang/ponyc/issues/2729
<SeanTAllen> If packaging and what not is your thing: https://github.com/ponylang/ponyc/issues/2522
<SeanTAllen> If compiler work is your thing: https://github.com/ponylang/ponyc/issues/2083
<SeanTAllen> If "developer tooling" is your thing: https://github.com/ponylang/ponyc/issues/1532
<SeanTAllen> Any of those strike you as something you'd be interested in ndrwsh ?
<ndrwsh> https://github.com/ponylang/ponyc/issues/2083 is the best for me I guess
<SeanTAllen> awesome drop a note on it that you want to work on it and i can assign it to you.
<SeanTAllen> jemc and vaninwagen would be two contributors who could help you out if/when you get stuck
<ndrwsh> done
<SeanTAllen> I just invited you as a contributor.
<SeanTAllen> accept the invite and i can add you
<ndrwsh> I am now a member of Pony! ^_^
<SeanTAllen> Assigned!
<SeanTAllen> when you start, you can change the label to "enhancement - in progress"
<ndrwsh> Thanks!
<SeanTAllen> contributor is the first step to commiter!
<SeanTAllen> do reach out if you run into issues
<ndrwsh> ok
<SeanTAllen> i dont know the compiler well so i probably wont be much help
<SeanTAllen> i know the runtime
<SeanTAllen> jemc and vaninwagen are good resoources on that
<SeanTAllen> as is praetonus and kubali
jemc has quit [Ping timeout: 260 seconds]
droman has quit [Quit: WeeChat 2.1]
<ndrwsh> I don’t have permission to edit the issue to change the label :(
<SeanTAllen> ok
<SeanTAllen> i can do that
<winksaville> @seantallen, what is your opinion on forking LLVM to ponylang/llvm so I can use it for PR #2748
<SeanTAllen> i dont have an opinion, i'm not sure what the best way to do that is. havent had a chance to think about it at all. sorry.
nisanharamati has quit []
jemc has joined #ponylang
sheerluck has joined #ponylang
ndrwsh has left #ponylang [#ponylang]
zzzzzzeeetttt has joined #ponylang
sheerluck has quit [Remote host closed the connection]
zzzzzzeeetttt has quit [Quit: Leaving]
zetashift has joined #ponylang
kiwimec has joined #ponylang
kiwimec has quit [Client Quit]
kiwimec has joined #ponylang
pzel_ has joined #ponylang
pzel has quit [Ping timeout: 256 seconds]
jemc has quit [Ping timeout: 240 seconds]
kiwimec has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kiwimec has joined #ponylang