Switch to DuckDuckGo Search
   January 30, 2017  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >

Toggle Join/Part | bottom
[00:18:23] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 255 seconds)
[00:19:27] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[00:36:22] *** obadz <obadz!~obadz@unaffiliated/obadz> has left #haxe ("WeeChat 1.5")
[00:42:35] *** m_m <m_m!~m_m@user-188-33-20-18.play-internet.pl> has quit IRC (Ping timeout: 240 seconds)
[00:54:46] *** Sim_n <Sim_n!~simn@ip5f59eda7.dynamic.kabel-deutschland.de> has quit IRC (Quit: Leaving)
[00:58:48] *** balduin <balduin!~user@64.179.145.154> has quit IRC (Remote host closed the connection)
[00:59:06] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has joined #haxe
[00:59:51] *** balduin <balduin!~user@64.179.145.154> has joined #haxe
[01:16:51] *** Gama11 <Gama11!~quassel@pD9F9995F.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[01:22:10] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 240 seconds)
[01:23:26] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[01:24:37] *** JensG2 <JensG2!~JensG@i59F6D63B.versanet.de> has quit IRC (Quit: Nettalk6 - www.ntalk.de)
[02:01:42] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 258 seconds)
[02:02:48] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[02:38:58] *** Mac70 <Mac70!~Mac70@195.187.156.43> has joined #haxe
[03:09:32] *** jamtho <jamtho!~jamtho@cpc69399-oxfd27-2-0-cust935.4-3.cable.virginm.net> has joined #haxe
[03:09:56] *** kaikoga <kaikoga!~kaikoga@nttkyo888220.tkyo.nt.ngn.ppp.infoweb.ne.jp> has quit IRC (Quit: Leaving.)
[03:10:09] *** kaikoga <kaikoga!~kaikoga@nttkyo888220.tkyo.nt.ngn.ppp.infoweb.ne.jp> has joined #haxe
[03:25:33] *** slickrockio <slickrockio!~nodebot@ec2-54-205-149-84.compute-1.amazonaws.com> has joined #haxe
[03:41:16] *** kaikoga <kaikoga!~kaikoga@nttkyo888220.tkyo.nt.ngn.ppp.infoweb.ne.jp> has quit IRC (Quit: Leaving.)
[03:56:49] *** c355e3b <c355e3b!uid82600@gateway/web/irccloud.com/x-ctlxgpktcdbohnqx> has quit IRC (Quit: Connection closed for inactivity)
[03:57:55] *** slickrockio <slickrockio!~nodebot@ec2-54-205-149-84.compute-1.amazonaws.com> has quit IRC (Remote host closed the connection)
[04:01:37] *** slickrockio <slickrockio!~nodebot@ec2-54-198-169-30.compute-1.amazonaws.com> has joined #haxe
[04:06:17] *** jamtho <jamtho!~jamtho@cpc69399-oxfd27-2-0-cust935.4-3.cable.virginm.net> has quit IRC (Ping timeout: 258 seconds)
[04:20:31] *** kaikoga <kaikoga!~kaikoga@124x37x248x42.ap124.ftth.ucom.ne.jp> has joined #haxe
[04:21:49] *** Kinrany <Kinrany!25be3f6b@gateway/web/freenode/ip.37.190.63.107> has joined #haxe
[04:23:14] <Kinrany> How do I define a generic class whose variable type is a function?
[04:24:35] <Kinrany> Can I do something like MyClass<T:T0 -> Void> and use T0 elsewhere?
[04:25:50] *** Mac70 <Mac70!~Mac70@195.187.156.43> has quit IRC (Read error: Connection reset by peer)
[04:36:36] *** slickrockio <slickrockio!~nodebot@ec2-54-198-169-30.compute-1.amazonaws.com> has quit IRC (Remote host closed the connection)
[04:44:48] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 240 seconds)
[04:45:25] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[05:46:32] *** a <a!ae13b3fc@gateway/web/flash/unic0rn.github.io/ip.174.19.179.252> has joined #haxe
[05:46:55] *** a is now known as Guest91389
[05:54:59] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has quit IRC (Ping timeout: 255 seconds)
[05:58:26] *** Guest91389 <Guest91389!ae13b3fc@gateway/web/flash/unic0rn.github.io/ip.174.19.179.252> has quit IRC (Remote host closed the connection)
[05:59:35] *** Kinrany <Kinrany!25be3f6b@gateway/web/freenode/ip.37.190.63.107> has quit IRC (Quit: Page closed)
[06:00:35] *** balduin <balduin!~user@64.179.145.154> has quit IRC (Ping timeout: 240 seconds)
[06:06:14] *** frumple <frumple!~dylsexic@213.149.61.197> has quit IRC (Quit: blame Canada)
[06:57:02] *** PSvils <PSvils!~PDevelope@balticom-135-109.balticom.lv> has joined #haxe
[06:58:43] *** PSvils <PSvils!~PDevelope@balticom-135-109.balticom.lv> has quit IRC (Client Quit)
[07:15:40] *** slickrockio <slickrockio!~nodebot@ec2-54-144-97-246.compute-1.amazonaws.com> has joined #haxe
[07:22:01] *** r3d9u11 <r3d9u11!5d5513a7@gateway/web/freenode/ip.93.85.19.167> has joined #haxe
[07:24:32] *** r3d9u11 <r3d9u11!5d5513a7@gateway/web/freenode/ip.93.85.19.167> has quit IRC (Client Quit)
[07:25:41] *** RobDangerous <RobDangerous!~Thunderbi@p2003007A09753800C82454C2B6D740A8.dip0.t-ipconnect.de> has joined #haxe
[07:46:25] *** PSvils <PSvils!~PDevelope@212.93.104.62> has joined #haxe
[07:51:16] *** slickrockio <slickrockio!~nodebot@ec2-54-144-97-246.compute-1.amazonaws.com> has quit IRC (Remote host closed the connection)
[07:55:47] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has joined #haxe
[07:58:45] *** ScrambledRK <ScrambledRK!~RK@80-108-213-152.cable.dynamic.surfer.at> has joined #haxe
[08:13:34] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has quit IRC (Ping timeout: 255 seconds)
[08:15:01] *** ibilon <ibilon!~ibilon@2a01cb0504d37b0081771b3f2aeb514f.ipv6.abo.wanadoo.fr> has joined #haxe
[08:15:33] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has joined #haxe
[08:23:33] <dimitrijer> I have a question about enums: does anyone know if it is possible for Haxe to output enums as standard C# enums?
[08:23:33] <dimitrijer> I know about @:nativeGen, but I have not found a way in Haxe to get standard C# enums with assigned integer value
[08:26:37] *** anniz <anniz!~anniz@c83-250-15-118.bredband.comhem.se> has quit IRC (Ping timeout: 255 seconds)
[08:32:03] *** PSvils <PSvils!~PDevelope@212.93.104.62> has quit IRC (Quit: Leaving.)
[08:35:28] *** RobDangerous <RobDangerous!~Thunderbi@p2003007A09753800C82454C2B6D740A8.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 240 seconds)
[08:37:24] *** gogoprog <gogoprog!~FC@91.183.39.171> has joined #haxe
[08:39:46] *** PSvils <PSvils!~PDevelope@212.93.104.62> has joined #haxe
[08:42:37] <ScrambledRK> if its an integer you need for each enum ... they already have
[08:43:37] <ScrambledRK> yourEnum.getIndex()
[08:47:24] <dimitrijer> is that going to give me index automatically assigned by the compiler?
[08:47:54] <dimitrijer> what if I wanted a custom number, say enum Size { Large = 1; Medium = 5; Small = 10; }?
[08:48:24] <ScrambledRK> jeha that is auto generated ...
[08:48:42] <ScrambledRK> maybe you can get away with @enum notation .... I think its still around
[08:48:48] <dimitrijer> yeah, tried that
[08:48:52] <ScrambledRK> :/
[08:49:10] <dimitrijer> it does the trick albait it works by inlining enums with constant values
[08:49:27] <dimitrijer> the reason I want enums in C# code is because someone else is going to be using it
[08:49:39] <dimitrijer> and it's really ugly to have to work with constants instead of enums
[08:50:59] <ScrambledRK> you mean the generated C# code will be used by some other application/developer
[08:51:38] <ScrambledRK> or the haxe code will be used by someone else? just out of curiosity; I think I've exhausted my limited knowledge about the enum situation :S
[08:52:39] <dimitrijer> just a sec, first time irssi user, rendering got screwed
[08:53:29] <dimitrijer> yeah, generated code is supposed to be used further on
[08:53:37] <dimitrijer> by other devs
[08:54:19] <dimitrijer> the deal is I want to use haxe to generate both Java and C# code to be used by backend/frontend software, respectively
[08:54:44] <dimitrijer> this way I can write common code in Haxe, and I will only have to do it once
[08:54:47] <ScrambledRK> I found that it is possible but with lots of limitations though.
[08:55:23] <ScrambledRK> only tried it for java though ...
[08:55:45] <ScrambledRK> for example empty constructors require a null as argument ... array accessors do not work and you have to use _get() _set()
[08:56:03] <ScrambledRK> some fields/methods become public although they shouldn't
[08:56:27] <ScrambledRK> lots of auto generated internal methods for haxe reflexion are suggested in the code completition
[08:56:43] *** ibilon <ibilon!~ibilon@2a01cb0504d37b0081771b3f2aeb514f.ipv6.abo.wanadoo.fr> has quit IRC (Quit: Leaving.)
[08:57:12] <dimitrijer> yeah, this enum thingy is just one of difficulties I encountered
[08:57:19] <dimitrijer> @:nativeGen helps a lot though
[08:57:31] <dimitrijer> you end up with nice Java/C# code, and simple classes just work
[08:57:36] <ScrambledRK> you can hardly depend on multiple haxe generated *.jars that in turn depend on each other (dependency tree) because haxe does quite some magic between the dependencies ...
[08:57:41] <ScrambledRK> ^^ nice - gotta check it out then
[08:58:27] <dimitrijer> basically, there are only two issues so far: this enum thing and there seems to be no way to inject `partial` class modifier in generated C# code
[08:58:59] <dimitrijer> brb
[08:59:05] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has quit IRC (Quit: leaving)
[09:00:24] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has joined #haxe
[09:01:11] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has quit IRC (Client Quit)
[09:02:53] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has joined #haxe
[09:03:00] <dimitrijer> God, it'
[09:03:11] <dimitrijer> it's really hard getting stuff to work inside tmux
[09:04:35] <ScrambledRK> :D
[09:04:53] <ScrambledRK> can you perhaps show me an example of @:nativeGen?
[09:04:58] <dimitrijer> yeah, sure
[09:05:03] <ScrambledRK> just reading the theory about it is a bit dry x)
[09:05:37] <dimitrijer> so this: @:nativeGen class Test { public var FloatingFloat:Single = 0.05; }
[09:06:21] <dimitrijer> will translate to public class Test { public float FloatingFloat = (float) 0.05; }
[09:06:25] <dimitrijer> in C#
[09:06:49] <dimitrijer> so it doesn't inherit from haxe object and there are no reflection helper methods
[09:06:54] <dimitrijer> just a plain C# object
[09:07:06] <ScrambledRK> ahhh niicee
[09:07:27] <dimitrijer> similar for Java as well
[09:07:33] <dimitrijer> you get a POJO
[09:07:55] <dimitrijer> which is perfect, just what I needed
[09:08:12] <dimitrijer> if you use it on a Haxe enum
[09:08:18] <dimitrijer> you will get a C# plain enum
[09:08:34] <dimitrijer> but alas, no way assing custom int values to specific enums
[09:08:44] *** Simn <Simn!~simn@2a02:810b:b40:414:a5ae:cd37:c1f:e23f> has joined #haxe
[09:08:45] <dimitrijer> no way to assign*
[09:10:58] <dimitrijer> so basically, all I need is to generate a bunch of these simple classes that hold some values and have some simple methods for both C# and Java
[09:10:59] <ScrambledRK> :/
[09:11:15] <dimitrijer> and then use JSON to serialize/deserialize them on both sides
[09:11:22] <dimitrijer> works nice so far, except for the enums
[09:12:03] <dimitrijer> from what I can gather, Haxe seems awesome to be a primary development language, especially for prototyping
[09:12:26] <dimitrijer> it does not seem to be this intermediary language I am looking for
[09:12:52] <dimitrijer> do you maybe know of some alternatives to Haxe that can do this?
[09:13:14] <ScrambledRK> lots and lots of rough edges if you start going deep into a specific target language and/or goal. like using generated code as a native library
[09:13:55] <ScrambledRK> not really ... at work we wrote our own cross-transpiler oO ... the madness
[09:14:22] <dimitrijer> yeah, don't wanna go down that path unless absolutely necessary :D
[09:24:20] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has joined #haxe
[09:27:21] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has quit IRC (Client Quit)
[09:30:41] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has joined #haxe
[09:35:01] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has quit IRC (Ping timeout: 255 seconds)
[09:38:38] *** ibilon <ibilon!~lemierev@2001:660:7101:2::18> has joined #haxe
[09:38:39] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has joined #haxe
[09:38:58] *** Gama11 <Gama11!~quassel@pD9F90CA7.dip0.t-ipconnect.de> has joined #haxe
[09:39:32] <PSvils> dimitrijer: easy solution, make them use Haxe too! :D
[09:46:17] *** Adib <Adib!~Adib@unaffiliated/adib> has joined #haxe
[09:49:20] <dimitrijer> @PSvils it's hard for us to agree on common language for backend/frontend alone :)
[09:53:11] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has quit IRC (Ping timeout: 245 seconds)
[10:12:27] *** Sim_n <Sim_n!~simn@ip5f59eda7.dynamic.kabel-deutschland.de> has joined #haxe
[10:15:58] *** Simn <Simn!~simn@2a02:810b:b40:414:a5ae:cd37:c1f:e23f> has quit IRC (Ping timeout: 255 seconds)
[10:33:12] *** Ergo <Ergo!~ergo@91.238.59.144> has joined #haxe
[10:39:09] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has quit IRC (Quit: leaving)
[10:39:39] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has joined #haxe
[11:52:36] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has joined #haxe
[11:56:46] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has quit IRC (Ping timeout: 255 seconds)
[12:10:55] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has quit IRC (Quit: leaving)
[12:11:18] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has joined #haxe
[12:16:45] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 240 seconds)
[12:22:17] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[12:31:23] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@gatekeeper.kom.e-technik.tu-darmstadt.de> has joined #haxe
[12:52:14] *** rf314 <rf314!~blx@static-176-182-148-133.ncc.abo.bbox.fr> has quit IRC (Quit: leaving)
[13:07:37] <gogoprog> hello
[13:07:46] <gogoprog> I have a structAccess on my class
[13:08:00] <gogoprog> so I thought I could skip the assignation, but I can't
[13:08:03] <gogoprog> why is that?
[13:08:35] <ibilon> the @:structAccess metadata?
[13:08:39] <gogoprog> yes
[13:08:55] <ibilon> it's only made for c++ externs
[13:09:15] <gogoprog> yes I'm working with c++ externs
[13:09:44] <ibilon> what exactly do you mean by assignation? it simply changes from `->` to `.` when accessing fields
[13:10:55] <gogoprog> it will be simpler with a concrete sample : https://github.com/gogoprog/sdl-haxe/blob/fix/latest-haxe/Main.hx#L18
[13:11:25] <gogoprog> I added the untyped to "trick" haxe to know it is initialized
[13:11:45] <gogoprog> but it is useless because the generated code is fine and doesn't require assignation
[13:12:42] <ibilon> haxe doesn't have a notion of pointer so it can't handle variable without values
[13:13:29] <gogoprog> it somehow has some notion (ex. RawPointer.addressOf )
[13:13:42] <gogoprog> but okayI understand this is some kind of limitation
[13:14:56] *** balduin <balduin!~user@64.179.145.154> has joined #haxe
[13:15:06] <ibilon> for haxe addressOf returns an object of type RawPointer
[13:22:34] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has quit IRC (Ping timeout: 264 seconds)
[13:24:25] *** jamtho <jamtho!~jamtho@cpc69399-oxfd27-2-0-cust935.4-3.cable.virginm.net> has joined #haxe
[13:27:20] *** kaikoga <kaikoga!~kaikoga@124x37x248x42.ap124.ftth.ucom.ne.jp> has quit IRC (Quit: Leaving.)
[13:30:56] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has joined #haxe
[13:35:53] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has quit IRC (Ping timeout: 258 seconds)
[13:41:53] *** Adib <Adib!~Adib@unaffiliated/adib> has quit IRC (Read error: Connection reset by peer)
[13:43:51] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has joined #haxe
[13:46:23] *** slickrockio <slickrockio!~nodebot@ec2-54-167-147-22.compute-1.amazonaws.com> has joined #haxe
[13:54:01] <PSvils> gogoprog: how does this lib differ from linc_sdl?
[13:55:43] <gogoprog> this one had less glue code, was matching more the sdl c api
[13:55:58] <PSvils> ah okay, sounds nicer
[13:55:59] <gogoprog> I didn't know linc_sdl, looks nice
[13:56:46] <gogoprog> but they add c++ code
[13:58:00] <PSvils> yeah, noticed that. I remember there being a reason for that.
[13:58:25] <gogoprog> yes, to avoid the issues I was discussing before ;)
[13:58:58] <gogoprog> ex : their SDL.pollEvent doesn't take an output parameter, but returns the event
[14:04:08] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@gatekeeper.kom.e-technik.tu-darmstadt.de> has quit IRC (Ping timeout: 276 seconds)
[14:06:10] *** jamtho <jamtho!~jamtho@cpc69399-oxfd27-2-0-cust935.4-3.cable.virginm.net> has quit IRC (Ping timeout: 240 seconds)
[14:10:12] *** Uhfgood <Uhfgood!~Captain_J@97-96-80-60.res.bhn.net> has joined #haxe
[14:19:20] *** r3d9u11 <r3d9u11!~r3d9u11@93.84.62.58> has joined #haxe
[14:19:56] *** slickrockio <slickrockio!~nodebot@ec2-54-167-147-22.compute-1.amazonaws.com> has quit IRC (Remote host closed the connection)
[14:20:05] <Uhfgood> hmm weird
[14:20:20] <Uhfgood> is there a way to tell if my nick has been registered?
[14:20:47] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 252 seconds)
[14:23:36] *** ScrambledRK <ScrambledRK!~RK@80-108-213-152.cable.dynamic.surfer.at> has quit IRC (Quit: so long ...)
[14:26:14] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[14:27:57] *** dimitrijer <dimitrijer!~dimitrije@62.67.184.226> has quit IRC (Quit: leaving)
[14:30:08] *** c355e3b <c355e3b!uid82600@gateway/web/irccloud.com/x-xygvkpnhwwnworsq> has joined #haxe
[14:32:17] <PSvils> gogoprog: ah, right! makes sense.
[14:39:41] *** Adib <Adib!~Adib@unaffiliated/adib> has joined #haxe
[14:46:26] *** r3d9u11 <r3d9u11!~r3d9u11@93.84.62.58> has quit IRC (Remote host closed the connection)
[15:38:00] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@gatekeeper.kom.e-technik.tu-darmstadt.de> has joined #haxe
[15:41:28] *** kaikoga <kaikoga!~kaikoga@nttkyo893202.tkyo.nt.ngn.ppp.infoweb.ne.jp> has joined #haxe
[15:42:23] *** PSvils <PSvils!~PDevelope@212.93.104.62> has quit IRC (Quit: Leaving.)
[15:43:26] *** PSvils <PSvils!~PDevelope@212.93.104.62> has joined #haxe
[15:48:20] *** chichilatte <chichilatte!5433930e@gateway/web/flash/unic0rn.github.io/ip.84.51.147.14> has joined #haxe
[15:49:25] *** PSvils <PSvils!~PDevelope@212.93.104.62> has quit IRC (Ping timeout: 255 seconds)
[15:49:39] <chichilatte> Hey there, anyone know if it's possible to have a haxe extern for an as3 package-level function?
[15:49:49] <chichilatte> I'm suspecting not.
[15:52:09] <blue112> chichilatte, something like flash.display.trace() ?
[15:52:58] <chichilatte> y. Mine is libwebp.DecodeWebp()
[15:55:04] <blue112> chichilatte, try creating an extern like extern class Libwebp {}
[15:55:15] <blue112> And prefix it with @:native("libwebp")
[15:55:24] <blue112> Use it always with the uppercase in your haxe code
[15:55:33] <blue112> and it should automatically replace it when you compile
[15:58:31] <chichilatte> ...
[16:01:01] <chichilatte> Hmm, I get "Type not found" on my "import Libwebp;" line.
[16:01:50] <chichilatte> (tho i can click through from the import statemnt to the extern in my IDE
[16:01:52] <chichilatte> )
[16:02:49] <chichilatte> It may be that the swc library's docs are wrong and it doesn't actually have a libwebp.DecodeWebp method!
[16:05:48] *** xet7 <xet7!~xet7@62-248-241-251.elisa-mobile.fi> has joined #haxe
[16:14:21] *** cdg_ <cdg_!~cdg@157.166.173.4> has joined #haxe
[16:18:04] <chichilatte> Just decompiled the swc, the libwebp.DecodeWebp() function is in there.
[16:20:02] <ibilon> when do you get the type not found? during the haxe compilation or flash runtime?
[16:24:03] <chichilatte> Compilation
[16:24:52] *** null___ <null___!8f9ff69f@gateway/web/freenode/ip.143.159.246.159> has joined #haxe
[16:25:10] <null___> Hi all, does oneone have any idea why the following doesn't work?: http://try.haxe.org/#450BB
[16:25:15] <null___> anyone*
[16:25:16] <chichilatte> Reckon it's looking for the "libwebp" class in the swc and not finding anything
[16:28:22] <gogoprog> null___: you need to use Reflect.fields and so on
[16:28:27] <ProPuke> null___: that json is incorrect. That's an object with the properties name, and data, specified twice, not an array
[16:28:34] <ProPuke> http://try.haxe.org/#08d79 is what you want
[16:28:46] <ibilon> chichilatte: then in that case there's nothing wrong with the swc, it's the haxe compiler that can't find your extern class
[16:28:56] <chichilatte> y
[16:29:03] <ibilon> where did you put it?
[16:29:14] <ibilon> at the root of the classpath?
[16:29:20] <chichilatte> y
[16:29:39] <ibilon> and it's called Libwebp.hx?
[16:29:43] <chichilatte> y
[16:29:50] <ibilon> that's weird then
[16:29:57] <null___> ProPuke: Perfect, thankyou! I tried square brackets to specify array but missed the curlies like an idiot haha
[16:29:58] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@gatekeeper.kom.e-technik.tu-darmstadt.de> has quit IRC (Quit: RobDangerousMobi)
[16:30:11] <null___> gogoprog: Thankyou for the pointer too :)
[16:30:44] <gogoprog> null___: indeed your json was just malformed
[16:30:53] <chichilatte> My extern is just...
[16:30:54] <chichilatte> @:native("libwebp") extern class Libwebp { static function DecodeWebp(data:flash.utils.ByteArray):flash.display.BitmapData;}
[16:31:43] *** xet7 <xet7!~xet7@62-248-241-251.elisa-mobile.fi> has quit IRC (Quit: Leaving)
[16:31:52] <chichilatte> Could be my haxe version is 3.2.0
[16:32:42] <chichilatte> (bit old)
[16:34:18] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has joined #haxe
[16:35:55] <ibilon> should work even with 3.2, do you have any other files in that folder, does including them work?
[16:36:12] <chichilatte> Hah, about 100
[16:39:53] <ibilon> then I don't know what to tell you, if the file is in a classpath and named A.hx then `import A;` is supposed to work
[16:40:09] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has joined #haxe
[16:40:36] <chichilatte> Just double-checked. Other classes at the top of the classpath do work
[16:40:54] <chichilatte> I know it's a mystery
[16:42:12] <chichilatte> I think the "Type not found" error is happening because the swc has no type "libwebp", it's a package (stating the obvious here), and I don't know if that's supposed to work.
[16:42:49] <ProPuke> well, does it go away if you remove the extern mappings?
[16:44:42] <chichilatte> Haha ProPuke, wtf, it compiled with no errors!
[16:47:01] *** null___ <null___!8f9ff69f@gateway/web/freenode/ip.143.159.246.159> has quit IRC (Quit: Page closed)
[16:48:11] <chichilatte> Argh, no, it compiled when my line was "Libwebp.DecodeWebp()", but actually because there's no extern it has to be the lowercase "libwebp.DecodeWebp()" - which throws a compile error.
[16:48:38] <chichilatte> (Unknown identifier : libwebp)
[16:51:49] *** PSvils <PSvils!~PDevelope@88.135.146.138> has joined #haxe
[16:55:46] <chichilatte> Ok, got it to compile using a top of the classpath Libwebp.hx with just this in it...
[16:55:47] <chichilatte> @:native("libwebp") extern class Libwebp {}
[16:56:29] <chichilatte> But when i try But when i try libwebp.DecodeWebp() i get runtime error...
[16:56:31] <chichilatte> Variable libwebp is not defined.
[16:56:52] <chichilatte> I think I'm gonna give up, urgh.
[16:57:21] <chichilatte> Looks like haxe can't pull off package-level functions too easily
[16:57:52] <ProPuke> It's called `Libwebp.DecodeWebp` within haxe, not lowercase
[16:59:01] <chichilatte> Y, sorry, wasn't clear. When i used the extern my code was using the uppercase `Libwebp.DecodeWebp()`
[16:59:37] <ProPuke> oh, even with @:native("libwebp") ?
[16:59:41] <chichilatte> And the runtime error said `libwebp`
[16:59:47] <chichilatte> y
[17:00:06] <chichilatte> So the error showed that at least the @native thing was working :)
[17:00:26] <ProPuke> sounds like the libwebp library needs including somehow?
[17:00:52] <chichilatte> It's definitely getting included in my project.xml
[17:01:10] <chichilatte> If i deliberately misspell the swc's filename i get an error
[17:02:11] <ProPuke> how are you including it in project.xml?
[17:03:59] <chichilatte> <haxeflag name="-swf-lib" value="libs/libwebp.swc" if="flash" />
[17:04:32] <chichilatte> Same as other libs we're using
[17:04:59] <ProPuke> hmm, okay, I'm out of ideas :(
[17:05:06] <chichilatte> hh me too
[17:05:19] <chichilatte> Thanks for all your help folks
[17:05:25] *** ibilon <ibilon!~lemierev@2001:660:7101:2::18> has quit IRC (Quit: Leaving.)
[17:05:52] <ProPuke> Looks like, as you say, haxe may not support as3 package functions
[17:05:58] *** cdg <cdg!~cdg@157.166.173.4> has joined #haxe
[17:06:27] <chichilatte> y, bugger
[17:06:40] *** cdg_ <cdg_!~cdg@157.166.173.4> has quit IRC (Ping timeout: 256 seconds)
[17:08:09] *** chichilatte <chichilatte!5433930e@gateway/web/flash/unic0rn.github.io/ip.84.51.147.14> has quit IRC (Remote host closed the connection)
[17:08:29] *** cdg_ <cdg_!~cdg@157.166.173.4> has joined #haxe
[17:10:08] *** gogoprog <gogoprog!~FC@91.183.39.171> has quit IRC (Quit: Leaving.)
[17:12:05] *** cdg <cdg!~cdg@157.166.173.4> has quit IRC (Read error: Connection reset by peer)
[17:12:22] *** cdg <cdg!~cdg@157.166.173.4> has joined #haxe
[17:15:21] *** cdg__ <cdg__!~cdg@157.166.173.4> has joined #haxe
[17:15:42] *** cdg_ <cdg_!~cdg@157.166.173.4> has quit IRC (Ping timeout: 240 seconds)
[17:19:08] *** cdg <cdg!~cdg@157.166.173.4> has quit IRC (Ping timeout: 276 seconds)
[17:19:41] *** adrianmm <adrianmm!~adrianmm@s55964df4.adsl.online.nl> has joined #haxe
[17:19:45] *** frumple <frumple!~dylsexic@213.149.61.197> has joined #haxe
[17:32:19] <Sim_n> Any mac user around? I need confirmation that http://hxbuilds.s3-website-us-east-1.amazonaws.com/builds/haxe/mac-installer/haxe_latest.tar.gz "just works".
[17:33:25] <Sim_n> Actually I expect it to not work because of libpcre...
[17:33:29] *** slickrockio <slickrockio!~nodebot@ec2-54-160-146-137.compute-1.amazonaws.com> has joined #haxe
[17:41:53] *** adrianmm <adrianmm!~adrianmm@s55964df4.adsl.online.nl> has quit IRC (Remote host closed the connection)
[17:45:08] *** cdg__ <cdg__!~cdg@157.166.173.4> has quit IRC (Ping timeout: 276 seconds)
[17:45:31] *** RobDangerousMobi <RobDangerousMobi!~Thunderbi@2001:41b8:83f:200c:b8bd:6bf9:de2d:c58d> has quit IRC (Ping timeout: 255 seconds)
[17:53:55] *** r3d9u11 <r3d9u11!~r3d9u11@93.84.62.58> has joined #haxe
[17:53:59] *** r3d9u11_ <r3d9u11_!~r3d9u11@93.84.62.58> has joined #haxe
[17:54:39] *** r3d9u11 <r3d9u11!~r3d9u11@93.84.62.58> has quit IRC (Client Quit)
[17:54:58] *** r3d9u11_ <r3d9u11_!~r3d9u11@93.84.62.58> has quit IRC (Client Quit)
[17:55:41] *** r3d9u11 <r3d9u11!~r3d9u11@93.84.62.58> has joined #haxe
[18:07:35] *** slickrockio <slickrockio!~nodebot@ec2-54-160-146-137.compute-1.amazonaws.com> has quit IRC (Remote host closed the connection)
[18:23:33] *** RobDangerous <RobDangerous!~Thunderbi@p4FE73B1F.dip0.t-ipconnect.de> has joined #haxe
[18:24:41] *** endformationage <endformationage!~endformat@216.19.1.54> has joined #haxe
[18:47:32] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has quit IRC (Ping timeout: 276 seconds)
[18:54:03] *** Mac70 <Mac70!~Mac70@195.187.156.43> has joined #haxe
[18:57:27] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has joined #haxe
[19:04:41] *** ibilon <ibilon!~ibilon@2a01cb0504d37b00dce86fda22ab9b22.ipv6.abo.wanadoo.fr> has joined #haxe
[19:12:29] *** Ergo <Ergo!~ergo@91.238.59.144> has quit IRC (Quit: WeeChat 1.4)
[19:28:20] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 256 seconds)
[19:29:19] *** r3d9u11 <r3d9u11!~r3d9u11@93.84.62.58> has quit IRC (Remote host closed the connection)
[19:29:42] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[19:30:12] *** PSvils <PSvils!~PDevelope@88.135.146.138> has quit IRC (Ping timeout: 240 seconds)
[19:40:30] *** PSvils <PSvils!~PDevelope@88.135.146.138> has joined #haxe
[19:55:05] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has quit IRC (Ping timeout: 240 seconds)
[20:09:02] *** PSvils <PSvils!~PDevelope@88.135.146.138> has quit IRC (Quit: Leaving.)
[20:10:19] *** Uhfgood <Uhfgood!~Captain_J@97-96-80-60.res.bhn.net> has quit IRC (Quit: Leaving)
[20:11:25] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has joined #haxe
[20:15:40] *** JensG <JensG!~JensG@apache/committer/jensg> has joined #haxe
[20:37:27] *** PSvils <PSvils!~PDevelope@balticom-135-109.balticom.lv> has joined #haxe
[20:53:05] *** cdg <cdg!~cdg@157.166.173.4> has joined #haxe
[20:54:38] *** cdg_ <cdg_!~cdg@157.166.173.4> has joined #haxe
[20:58:50] *** cdg <cdg!~cdg@157.166.173.4> has quit IRC (Ping timeout: 276 seconds)
[21:22:50] *** slickrockio <slickrockio!~nodebot@ec2-54-163-42-242.compute-1.amazonaws.com> has joined #haxe
[21:23:46] *** cdg <cdg!~cdg@157.166.173.4> has joined #haxe
[21:26:56] *** cdg_ <cdg_!~cdg@157.166.173.4> has quit IRC (Ping timeout: 245 seconds)
[21:27:08] *** cdg_ <cdg_!~cdg@157.166.173.4> has joined #haxe
[21:27:28] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 240 seconds)
[21:28:08] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[21:30:10] *** cdg <cdg!~cdg@157.166.173.4> has quit IRC (Ping timeout: 256 seconds)
[21:39:34] *** cdg <cdg!~cdg@157.166.173.4> has joined #haxe
[21:40:53] *** anniz <anniz!~anniz@c83-250-15-118.bredband.comhem.se> has joined #haxe
[21:42:12] *** cdg_ <cdg_!~cdg@157.166.173.4> has quit IRC (Read error: Connection reset by peer)
[21:42:15] *** cdg__ <cdg__!~cdg@157.166.173.4> has joined #haxe
[21:45:48] *** cdg <cdg!~cdg@157.166.173.4> has quit IRC (Ping timeout: 255 seconds)
[21:51:19] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 260 seconds)
[21:52:08] *** PSvils <PSvils!~PDevelope@balticom-135-109.balticom.lv> has quit IRC (Quit: Leaving.)
[21:55:02] *** RobDangerous <RobDangerous!~Thunderbi@p4FE73B1F.dip0.t-ipconnect.de> has quit IRC (Quit: RobDangerous)
[21:56:00] *** twincannon <twincannon!~blah@cpe-174-99-63-227.nc.res.rr.com> has quit IRC (Read error: Connection reset by peer)
[21:56:10] *** slickrockio <slickrockio!~nodebot@ec2-54-163-42-242.compute-1.amazonaws.com> has quit IRC (Remote host closed the connection)
[21:56:16] *** RobDangerous <RobDangerous!~Thunderbi@p2003007A09753800A057C98A9873EFDE.dip0.t-ipconnect.de> has joined #haxe
[21:56:37] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[21:58:08] *** twincannon <twincannon!~blah@cpe-174-99-63-227.nc.res.rr.com> has joined #haxe
[22:18:36] *** cdg <cdg!~cdg@157.166.173.4> has joined #haxe
[22:21:49] *** cdg__ <cdg__!~cdg@157.166.173.4> has quit IRC (Ping timeout: 255 seconds)
[22:23:11] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 240 seconds)
[22:24:41] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[22:31:36] *** cdg_ <cdg_!~cdg@157.166.173.4> has joined #haxe
[22:35:04] *** cdg <cdg!~cdg@157.166.173.4> has quit IRC (Ping timeout: 260 seconds)
[22:35:51] *** cdg <cdg!~cdg@157.166.173.4> has joined #haxe
[22:38:36] *** cdg_ <cdg_!~cdg@157.166.173.4> has quit IRC (Ping timeout: 245 seconds)
[22:44:16] *** cdg_ <cdg_!~cdg@157.166.173.4> has joined #haxe
[22:46:56] *** cdg <cdg!~cdg@157.166.173.4> has quit IRC (Ping timeout: 245 seconds)
[22:59:43] *** ibilon <ibilon!~ibilon@2a01cb0504d37b00dce86fda22ab9b22.ipv6.abo.wanadoo.fr> has quit IRC (Quit: Leaving.)
[23:11:46] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has quit IRC (Ping timeout: 248 seconds)
[23:12:23] *** stryx` <stryx`!~stryx@unaffiliated/stryx/x-3871776> has joined #haxe
[23:24:08] *** RobDangerous <RobDangerous!~Thunderbi@p2003007A09753800A057C98A9873EFDE.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 240 seconds)
[23:24:14] *** cdg <cdg!~cdg@157.166.173.4> has joined #haxe
[23:27:58] *** cdg_ <cdg_!~cdg@157.166.173.4> has quit IRC (Ping timeout: 264 seconds)
[23:33:13] *** cdg_ <cdg_!~cdg@157.166.173.4> has joined #haxe
[23:36:40] *** cdg <cdg!~cdg@157.166.173.4> has quit IRC (Ping timeout: 240 seconds)
[23:43:46] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has quit IRC (Ping timeout: 248 seconds)
[23:59:38] *** Aduros <Aduros!~bruno@unaffiliated/aduros> has joined #haxe
top

   January 30, 2017  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >