Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Emugel
@emugel
Yes
Gabriel Hayes
@piboistudios
Do you have a gcc HL build?
Emugel
@emugel
@piboistudios I had the same problem as you (I want to drop neko for hl). It is partially solved, feel free to participate in the issue, the more we are the better :) HaxeFoundation/record-macros#46
(it is under record-macros but it really concerns HL+linux, more exactly the apparently broken build system
IIRC it works if you make some modifs. I was waiting for a PR to be accepted before moving forward on my hl project though, so I forgot what was the exact status
Gabriel Hayes
@piboistudios
Well, really I just wanted to see if someone could try building native extended with gcc and gcc HL. Works fine with cl.exe on Windows, but gcc hdlls used by cl are no good (neither are gcc dlls used by cl hdlls)
So, right now everything I've written in terms of native extensions should work on any OS that can get gcc or clang, in theory. I just can't prove this.
.
Gabriel Hayes
@piboistudios
Also, can you use a class defined as private in another file in the same package?
Kevin Leung
@kevinresol
no, private type is within module
Gabriel Hayes
@piboistudios
Damn. You can't define ammer types with regular types so, I guess that means I have to leave the FFI code public.
Gabriel Hayes
@piboistudios
Also means I can't write tests over the FFI code to make sure it works right without exposing publicly (I guess I could use a conditional block if I could use private types)
Emugel
@emugel
Oh i mistakingly read your message. I know were working on db stuffs and i read hl + linux and i thought you had the same problem ^^ it builds yes, minus the problem in the above issue which requires manual fix
Will look with interest whatever code you write with this tech
Gabriel Hayes
@piboistudios
Well, for the extension I'm writing now I'd have to find the BSD/Unix C equivalent (s). I'm basically writing Hax wrappers over the windows synchronization APIs
Emugel
@emugel
man select man epoll that kind of things maybe?
Gabriel Hayes
@piboistudios
The only useful things I see in this API are SRW locks, Events and Mutexes (you can use events and mutexes IPC) so hopefully there's equivalent system objects. I honestly don't know anything but windows at a system level so I don't even know where I'd start looking (other than Google ofc)
Emugel
@emugel
I think epoll() is one of the popular ways on linux in C, it’s not stupid polling so it scales well. it’s not on OSX but they have kqueue and people say it is very similar . Higher level than that, covering the 3 systems? well i think that’s what you’re trying to do, no? ;) I more or less think even if it exists it may just be easier to just write it yourself. Both approaches are a different kind of headache but in C you are at least controlling your fate, on google and using another lib, not really
Emugel
@emugel
I might be completely wrong too :) Usually I'm scared of OOP libs (unless it comes in a tink namespace)
windows is probably much higher level
But you may look for alternatives. i only used that once or twice in my life really not the best adviser here
Emugel
@emugel
(Think you already ruled out libuv right?)
Gabriel Hayes
@piboistudios
yeah, only because I'm pretty sure Haxe will extend libuv, and if I do libuv via amner there's basically going to be a duplicate dependency (libuv)
Sounds like I'll have to write higher level abstractions for other platforms (which is fine). Right now, in C, I'm not doing much other than calling win API and logging error state so Haxe can then throw something meaningful.
Axel Huizinga
@axelhuizinga
Am working to create externs for https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray and wonder how it is possible to define the Events listed there and also the google.maps.event namespace
Juraj Kirchheim
@back2dos
it depends ... one option is inline function onInsert(handler:(index:Int)->Void) this.on('insert_at', handler)
(or whatever is required to actually register the thing)
Axel Huizinga
@axelhuizinga
inside the MVCArray class?
Juraj Kirchheim
@back2dos
yep
other than that, hxnodejs (and OpenFl) uses typed events via abstracts
Axel Huizinga
@axelhuizinga
thanks - I'll check
Gabriel Hayes
@piboistudios
Finally got the HL debugger in vs code to work. After 3 years with Haxe, I'm finally seeing macro types for what they are. I can't believe I never used it before
Mr zhan
@sonygod
I never used it before 2 ,could you make some tutorial? @piboistudios
Gabriel Hayes
@piboistudios
I just googled it I'll have to find the link again. I ended up copying some configs from online, doesn't look like vshaxe plugin really makes them well.
There's some slightly cumbersome limitations but being able to debug macros is pretty important so I don't mind them.
Axel Huizinga
@axelhuizinga
Jurai - your inline solution fails with: Type required for extern classes and interfaces
Juraj Kirchheim
@back2dos
yeah, you need to add Void as return type
Axel Huizinga
@axelhuizinga
I tried but then this refers to the Class instance which has no field on
Kevin Leung
@kevinresol
I did that by calling static method of google.maps.Event class
Juraj Kirchheim
@back2dos
I have no idea which of the 5000 event dispatching solutions the library uses ... you need to use a suitable implementation ... that's what I meant with "whatever is required to actually register the thing"
Axel Huizinga
@axelhuizinga
Kevin - looks easy - I'll try it this way
Marcelo Serpa
@fullofcaffeine
@kevinresol are you planning on deprecateing hxgenjs in favor of joining efforts with Ben on genes? Curious.
Mr zhan
@sonygod
In my vscode ,Haxe Building Catche is never stop? or crash?
target to node.js
where can I find error information about that?
Emugel
@emugel
@sonygod the haxe language server in vscode can occasionnally become mad from what I read and saw. I normally just go inspect processes and kill it
(if you're talking about the case where it takes 100% on one CPU core)
Mr zhan
@sonygod
I know how to restard or kill haxe lan server,but what I want is found about for what let it crash,there are no any log informatiion output
Mr zhan
@sonygod
image.png