Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 05 07:34
    Saiv46 commented #86
  • Sep 03 10:34
    rom1504 commented #86
  • Sep 03 10:33
    rom1504 commented #86
  • Sep 03 09:56
    Saiv46 commented #86
  • Sep 02 07:04
    Saiv46 edited #98
  • Sep 02 06:52
    rom1504 commented #98
  • Sep 02 06:49
    Saiv46 commented #98
  • Sep 02 06:48
    Saiv46 commented #98
  • Sep 01 11:18
    rom1504 commented #98
  • Sep 01 11:04
    Saiv46 edited #98
  • Sep 01 11:03
    Saiv46 opened #98
  • Aug 24 16:35
    rom1504 commented #97
  • Aug 24 16:33

    rom1504 on master

    Release 1.6.10 (compare)

  • Aug 24 16:31

    rom1504 on master

    add gitpod and fix gitmodules (compare)

  • Aug 24 16:29
    rom1504 closed #65
  • Aug 24 16:29
    rom1504 commented #65
  • Aug 24 16:28
    rom1504 closed #53
  • Aug 24 16:28
    rom1504 commented #53
  • Aug 24 16:28
    rom1504 closed #52
  • Aug 24 16:28
    rom1504 commented #52
mhsjlw
@mhsjlw
:)
Hans Elias J.
@hansihe
not yet
lol
after it successfully compiles a protocol.json is the timeframe
how long depends on how much I work on it I guess :)
mhsjlw
@mhsjlw
you're missing the varint serializer @hansihe ?
William Gaylord
@wgaylord
I wonder if it would be possible to make a python back end eventually for your nice little project.
mhsjlw
@mhsjlw
yeah, it'd be easy
nice little project
secretly over 9000 lines of code
lol
William Gaylord
@wgaylord
i said little not small. :P
Hans Elias J.
@hansihe
mhsjlw: I did not bother putting it in, should be easy to do though
Hans Elias J.
@hansihe
so the way I am doing it is that a single protodef file is a compilation unit
inside a compilation unit all types can refer to each other, even recursively
a compilation unit can also optionally have native types, they need to be defined for each language the spec file wants to support manually
when a spec file with native types wants to support a target, it needs to have a separate config file for that target. it contains things the compiler needs to know to link in those types, including what type of value it returns
(this is what enables the compiler to generate a match on certain values, like integers)
config file also contains additional info a specific language backend might need
Hans Elias J.
@hansihe
once I have all of this done and working, I am going to add the ability to import a spec file into another spec file
I imagine this is how the protodef "builtins" would be handled, just a spec with common types implemented natively in all languages we support
when importing spec files, they will be handled as a completely separate compilation unit. it will be handled the same way as native types inside the compiler, but the needed information is taken from the spec file instead of per-language config files like for native types
in the future we can add support for including spec files from git repos if we want, that should be relatively easy
Hans Elias J.
@hansihe
ok, namespace resolving is fully finished now
types now know about each other
mhsjlw
@mhsjlw
hype !
I'm so excited
and I was thinking I'm going to work on a Swift backend as well
Java, Swift, Rust and Elixir
Hans Elias J.
@hansihe
I will add a way of temporarily annotating information to native types now, that stuff should be in a separate config file for each language eventually
mhsjlw
@mhsjlw
not in that order specifically
Hans Elias J.
@hansihe
java is priority for me at least
mhsjlw
@mhsjlw
yeah
are you using it in an Android app ?
Hans Elias J.
@hansihe
because I need to find what extra info I need to expose for a statically typed language
mhsjlw
@mhsjlw
or just for some other projects
ah I got ya
Hans Elias J.
@hansihe
nope, being able to use minecraft-data in java is just something I think would be important
mhsjlw
@mhsjlw
I agree
Hans Elias J.
@hansihe
it would expand our demographic by a lot
mhsjlw
@mhsjlw
And with compilation it will make it convenient
yes, it would
I think swift would as well
but maybe not as much for mc data but more for protodef
Hans Elias J.
@hansihe
I still think of protodef as mainly for mcdata lol
mhsjlw
@mhsjlw
I use it outside of Minecraft
Hans Elias J.
@hansihe
oh, you do?
mhsjlw
@mhsjlw
yeah
Robin Lambertz
@roblabla
node-raknet still counts as minecraft stuff @mhsjlw :P
But more seriously, I do have grand plans for protodef outside minecraft.