Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:45
    xunto edited #278
  • 21:44
    xunto opened #278
  • Jan 15 23:35

    fponticelli on master

    Fix wrong sign in DateTime#subt… Add tests. Merge pull request #277 from xu… (compare)

  • Jan 15 23:35
    fponticelli closed #277
  • Jan 15 23:35
    fponticelli commented #277
  • Jan 15 21:35
    xunto commented #277
  • Jan 15 21:35
    xunto commented #277
  • Jan 15 21:23
    xunto synchronize #277
  • Jan 15 21:12
    xunto opened #277
  • Jan 11 17:53
    RealyUniqueName closed #112
  • Jan 11 17:53
    RealyUniqueName commented #112
  • Jan 11 14:33
    acarioni edited #112
  • Jan 11 14:32
    acarioni edited #112
  • Jan 11 14:31
    acarioni opened #112
  • Sep 20 2021 14:26

    fponticelli on master

    `Std.is` to `Std.isOfType` Merge pull request #276 from se… (compare)

  • Sep 20 2021 14:26
    fponticelli closed #276
  • Sep 20 2021 13:57
    seiren-games opened #276
  • Aug 06 2021 07:15
    CrazyFlasher commented #111
  • Aug 06 2021 07:14
    CrazyFlasher commented #111
  • Aug 05 2021 15:16
    CrazyFlasher edited #111
ousado
@ousado
not even a new AST node or anything
yeah, I think it's kind of beautiful :)
Franco Ponticelli
@fponticelli
it really is
ousado
@ousado
seeing it in haxe now, I like it even better than =>
Franco Ponticelli
@fponticelli
it is consistent with the type system, which is great
it took me a while to get used to the lean arrow but I like it now :)
ousado
@ousado
hehe, yeah
and with haskell and ocaml we're in good company there
Franco Ponticelli
@fponticelli
so you have a branch with those changes?
ousado
@ousado
yeah
Franco Ponticelli
@fponticelli
you should add a link to it to the proposal
ousado
@ousado
that's all it takes
oh, I did
Franco Ponticelli
@fponticelli
or maybe it is already there?
ok, I missed it
ousado
@ousado
yeah, maybe not fat enough?
I could add some cheering emojis around it, maybe :P
Franco Ponticelli
@fponticelli
maybe :)
I added a couple of emojis
ousado
@ousado
haha
btw - I wrote a HList implementation yesterday
in pure haxe, just with GADTs
and then I looked at it and nope, too ugly without short lambdas: http://try-haxe.mrcdk.com/#D7511
oh, there's all kinds of stuff in there now.. nevermind :) - it's just the very first type, really
Franco Ponticelli
@fponticelli
:)
Thomas Uster
@thomasuster
How do you run the tests?
Got it working
Franco Ponticelli
@fponticelli
cool :)
Thomas Uster
@thomasuster
@fponticelli The isPrime function in BigInt, what algorithm is that?
Franco Ponticelli
@fponticelli
here I am
Thomas Uster
@thomasuster
:+1:
Franco Ponticelli
@fponticelli
what do you want to know about isPrime?
Thomas Uster
@thomasuster
I used it for some primes, and it returned an incorrect value
Franco Ponticelli
@fponticelli
hmmm ... that sounds like a bug
let me see if I can find the original
Thomas Uster
@thomasuster
Okay, I'd love taking a look at the original as well
Some primality tests are faster, but only tell you some of the time if it is a prime or not
There is an algorithm for a polynomial time primality test
that's 100% correct always
the implementation seems to have changed since I ported it ... so maybe there was a bug there
Thomas Uster
@thomasuster
Hmmm
I will test the JS implementation when I get a chance
But it doesn't look correct to me either
Marcelo Serpa
@fullofcaffeine
@fponticelli What's your opinion on making functions independent of classes in Haxe (so that we could define them at the top-level and import/export them), and also allow for evaluating code in the "top-level", like TS allows? Do you think it'd be a nice addition to Haxe or the class-first approach is better?
FP-wise
Franco Ponticelli
@fponticelli
I'd love to have it
I often time find that constraining everything to classes makes things more limiting than they should be