-
````pony
use "collections"
primitive Seqx[A: Seq[B] ref = Array[I32], B: Comparable[B] #read = I32]
fun each(a: A, f: ({(B)} val | {(B): B} val) ): A^ => a
fun map(a: A, f: ({(B): B} val | {…
-
Pony code:
```pony
interface val X[Y: X[Y]]
fun apply(y: X[Y]) // Compiles if this is commented
type C is ((A | B) & X[(A | B)]) // Also compiles if the `& X[(A | B)]` is omitted
primitive …
-
https://github.com/Pauan/nulan
https://github.com/rswier/c4
https://github.com/brownplt/pyret-lang
https://github.com/mndrix/golog
https://github.com/aichaos/rivescript-go
https://github.com/…
-
Hi!
Pony is an amazing project, it was love at first sight for me. Having tried so many other languages, I can tell you I am having a great deal of fun and satisfaction coding in Pony. Congratulati…
-
Dear maintainers,
It would seem that, when ran with the `--ponynoblock` flag, the example http server leaks.
Background: When running into a cycle detector segfault [0] by benchmarking the sampl…
-
I am trying to install the latest v0.0.34 on my machine (Intel Mac, Monterey and Python v3.8.19). It fails with following:
```
pip install libsql-experimental
Collecting libsql-experimental
…
-
Starting with ponyc 0.49.1, the following Pony code:
```pony
class Foo
actor Main
fun apply(x: Foo iso^ = Foo) => None
new create(env: Env) =>
None
```
causes the compiler to c…
-
Add `#write`, a new gencap for use in type parameter constraints, implying the capability set: `{iso, trn, ref}`.
https://github.com/ponylang/rfcs/blob/master/text/0043-gencap-write.md
-
https://github.com/ponylang/pony-tutorial/blob/master/capabilities/aliasing.md#what-counts-as-making-an-alias states (point 3) that calling an object's method creates an alias, `this`, of that object.…
-
In https://tutorial.ponylang.io/expressions/arithmetic.html
+ | add() | wrap around on over-/underflow
+~ | add_unsafe() | Overflow E.g. I32.max_value() +~ I32(1)
But I see
var x10 = U32.max…