<TwoNotes>
Turns out there is a bug in audio drivers on Rpi3 that makes pulseaudio hang. So my 'hang' problem was not in my code. There is a workaround, which I was able to easily implement with a Pony Timer.
<TwoNotes>
Is it bad to have more than one "Timers" list in a program?
<jemc>
TwoNotes: I don't think it's problematic, other than being less efficient
<jemc>
if it makes sense for the sanity/cleanliness of your code to keep them separate, it's probably worth it
<TwoNotes>
One is in a 'package', the other not. So not particularly easy
<TwoNotes>
One, I could eliminate entirely on 'some' platforms. Are there any predefined 'ifdef' symbols I could use?
<Rishav>
Hi. just found Pony. On paper it sounds amazing for gamedev. I had a few questions that I hope you guys can answer
<Rishav>
1. Is there any package manager?
<Rishav>
2. are there mature bindings for glfw + opengl?
SeanTAllen has quit [Read error: Connection reset by peer]
SeanTAllen has joined #ponylang
<Rishav>
1. Is there any package manager?
<Rishav>
2. are there mature bindings for glfw + opengl?
prettyvanilla has quit [Ping timeout: 246 seconds]
prettyvanilla has joined #ponylang
prettyvanilla_ has joined #ponylang
prettyvanilla has quit [Ping timeout: 250 seconds]
<TwoNotes>
How do define a function only on one platform? It looks I can not wrap ifdef around a fun definition.
<SeanTAllen>
TwoNotes: you can wrap the body of the function in the ifdef
<TwoNotes>
How about variable declarations?
<SeanTAllen>
Rishav: no package manager. no mature bindings. you'd be a trail blazer.
<SeanTAllen>
TwoNotes: at the moment, it would be defined across all platforms
<TwoNotes>
Ok, I will just conditionalize the calls to those functions.
<SeanTAllen>
that is what we do at the moment
<TwoNotes>
Does the optimizer throw away uncalled functions?
<jemc>
yes
<jemc>
there is a "reach" phase of the compiler that selects only reachable code for code generation
<Rishav>
for a trailblazer, i cant figure out how to run it on windows....
<Rishav>
:D
<Rishav>
I downloaded the windows binaries. now am i to just use it from command or use it in VS?
<Rishav>
PS C:\Users\rsharan\Desktop\PonyLang\ponyc-release-0.9.0-1990.5a0bd57-win64\ponyc\bin> .\ponyc.exe .\helloWorld.pony Building builtin -> C:\Users\rsharan\Desktop\PonyLang\ponyc-release-0.9.0-1990.5a0bd57-win64\packages\builtin Error: .\helloWorld.pony: couldn't locate this path
<Rishav>
i also get exception if i just try to run ponyc.exe
<Rishav>
PS C:\Users\rsharan\Desktop\PonyLang\ponyc-release-0.9.0-1990.5a0bd57-win64\ponyc\bin> .\ponyc.exe Building builtin -> C:\Users\rsharan\Desktop\PonyLang\ponyc-release-0.9.0-1990.5a0bd57-win64\packages\builtin Building . -> C:\Users\rsharan\Desktop\PonyLang\ponyc-release-0.9.0-1990.5a0bd57-win64\ponyc\bin Generating Reachability Selector painting Data prototypes Data types Function prototypes Functions Descriptors Optimising
<jemc>
Rishav: I can't help much with windows, but if you're interested in game development with Pony on windows *specifically*, there are at least a few other "trailblazers" along with you - you may find this video interesting: https://www.youtube.com/watch?v=waYj4eV0RFE
<jemc>
Rishav: your second paste looks like the expected output
<Rishav>
oops. missed the last line -__-
<Rishav>
Optimising Writing .\bin.obj Linking .\bin.exe LINK : fatal error LNK1104: cannot open file 'ucrt.lib'
<jemc>
ponyc doesn't require the list of files to be compiled - it only needs to be run in a directory where `.pony` files are