Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Wang Shidong
@wsdjeg
I have a question about haxe, haxe do not support repl mode?
CRobes
@crobes:matrix.org
[m]
No, there are a couple projects that aim to replicate it but the actual haxe compiler does not do this
Wang Shidong
@wsdjeg
ok
the code runner has been added to spacevim.
image.png
CRobes
@crobes:matrix.org
[m]
@wsdjeg: where would I look for the config spacevim does for haxe? I'm interested in exactly which plugins etc. it uses for Haxe support
Wang Shidong
@wsdjeg
image.png
This is repl for haxe
bkilm
@bkil:matrix.org
[m]
haxeindex did not turn up anything on a web search.
bkilm
@bkil:matrix.org
[m]
But anyway, I'd seriously love to help out with any Haxe project that serves a useful purpose to a potentially sizable amount of users.
CRobes
@crobes:matrix.org
[m]
https://haxeindex.com is the url for the project
bkilm
@bkil:matrix.org
[m]

Ah, I see he's not an expert on SEO

You need to enable JavaScript to run this app.

CRobes
@crobes:matrix.org
[m]
the project is still in its early stages
bkilm
@bkil:matrix.org
[m]
Why didn't you just link to the source then?
CRobes
@crobes:matrix.org
[m]
I'm not sure where it is tbh, you'll have to ask him
Bulby
@bulbyvr:matrix.org
[m]
H
wait this is the main chat
apprentice-alchemist
@apprentice-alchemist:matrix.org
[m]
No, this is the gitter chat for the repo afaik.
Main chat is #haxe:matrix.org.
Bulby
@bulbyvr:matrix.org
[m]
but still 😭
Zeta
@apprentice-alchemist:matrix.org
[m]
But still what?
And I still do not understand why you use the crying emoji so much.
Bulby
@bulbyvr:matrix.org
[m]
i started to shitpost, but this is not casual chat
serjek
@serjek
hey guys, stupid question here. Why I can not use float map in haxe?
https://try.haxe.org/#8F173856
Juraj Kirchheim
@back2dos
it's not implemented across platforms
you can use a js.lib.Map when targeting JS
Sylvio Sell
@maitag
^~ (float map)
is there no better things to do *lol (^_^)
thx to hx all is superportable now .)
Thomas J. Webb
@thomasjwebb
This thing I'm working on for a client would be way better off if they made it in haxe from the get-go ;)
Sylvio Sell
@maitag
you think to much for your "clients" Thomas!
sometimes it is time to code also some stuff you are need (all is NEED!)
ShalokShalom
@ShalokShalom
Hi there. I just spend 15 minutes, searching for @pure in the documentation, and the build-in search has shown me nothing and I think this could be improved. Also consider adding this to the documentation about functions itself.
Here is it, currently pretty hidden for the value it provides, imho: https://haxe.org/manual/cr-metadata.html
And this is one of the many places, I find it appropriate to be added: https://code.haxe.org/category/beginner/declare-functions.html
Thomas J. Webb
@thomasjwebb
That's a cool feature
I think it was added recently?
Juraj Kirchheim
@back2dos
purity and the corresponding metadata which the compiler adds in a later pass it was added in 3.4 in late 2016 ^^
it is more of an internal detail of the analyzer, although it's indeed quite useful when creating externs, where the compiler cannot infer purity due to lacking implementation
Thomas J. Webb
@thomasjwebb
aah ok
ShalokShalom
@ShalokShalom
Or you can use it pretty much all over your code, to avoid unwanted side-effects. xD

it's indeed quite useful when creating externs, where the compiler cannot infer purity due to lacking implementation

How do you mean "infer purity"? Since when can Haxe infer purity and what does this mean?

Juraj Kirchheim
@back2dos
since 3.4 added in late 2016 ^^
and no, you shouldn't add it all over your code, unless you're sure it's safe for the compiler to remove it
Thomas J. Webb
@thomasjwebb
It would be awesome if there was a macro that enforced lack of side-effects but haxe can't know enough at that stage (or ever, as the case may be) to do such an enforcement. It's unfortunately just an assertion of purity. But you can always make your own functional haxe dsl that directly targets other languages? (very non-trivial)
ShalokShalom
@ShalokShalom
Assertion of purity?
Either its pure or not.
Thomas J. Webb
@thomasjwebb
But haxe can't know unless you tell it.
ROYAL
@ROYALEPRO
lol