by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 21 23:40
    sorenbug synchronize #6
  • May 21 20:28
    sorenbug synchronize #6
  • May 21 19:13
    sorenbug synchronize #6
  • May 18 23:04
    sorenbug synchronize #6
  • May 18 22:58
    sorenbug synchronize #6
  • May 18 22:53
    sorenbug synchronize #6
  • May 18 22:40
    sorenbug opened #6
  • Feb 22 18:02
    EskoJTH commented #3
  • Feb 22 18:00
    EskoJTH closed #3
  • Feb 22 18:00
    EskoJTH commented #3
  • Feb 22 17:47
    EskoJTH edited #3
  • Feb 22 17:47
    EskoJTH opened #3
  • Jan 27 07:30
    RiugaBachi edited #22
  • Jan 27 07:27
    RiugaBachi opened #22
  • Jan 27 07:20
    RiugaBachi opened #21
  • Aug 20 2019 16:17

    csabahruska on master

    add few type signatures (compare)

  • Jul 17 2019 17:30
    davidabernado closed #15
  • Jul 17 2019 17:30
    davidabernado commented #15
  • Jul 17 2019 17:27
    davidabernado commented #15
  • Jul 17 2019 17:26
    davidabernado reopened #15
Csaba Hruska
@csabahruska
postprocess it with a kotlin code formatter
Soren
@srnb_gitlab
Ah, I've just fixed the EDE
So it's nice and tidy
Csaba Hruska
@csabahruska
good!
well done
Soren
@srnb_gitlab
https://mystb.in/pejijoqexa.kt Here's a sample of the first half of stuff right now
Still have to do the JSON and the RT stuff
Oops, I broke things with one field
Soren
@srnb_gitlab
Soren
@srnb_gitlab
The question now is how to implement the JSON stuff
Soren
@srnb_gitlab

What does "correct" JSON input/output look like? This looks pretty enticing, but the downfall of it is that optimizers like Proguard on Android are going to have to be configured specifically for it.

The Java backend uses org.json/JSON-java, which is the most portable, so I should probably just copy that

Csaba Hruska
@csabahruska
use the platform default json library
the json format is fixed in the EDSL though
the goal is to be platfom idiomatic as much as possible
Soren
@srnb_gitlab
I'll use JSON-java then
I.e. what the Java backend uses
Csaba Hruska
@csabahruska
is it the de facto json lib for kotlin on android?
if so, then use that
Soren
@srnb_gitlab
It's included by default on Android
Because Kotlin doesn't require separate files, should I implement the JSON logic in data.kt.ede? @csabahruska
Csaba Hruska
@csabahruska
haskell and purescript generator/templates does that, but it is simple in those cases:
https://github.com/lambdacube3d/lambdacube-ir/blob/master/ddl/templates/data.purs.ede#L61-L84
Soren
@srnb_gitlab
Ohhh, because those are instance based I'm gonna have some issues with making it in the data.kt.ede
Because the Java aspect is one giant singleton
So yeah, I'll need to make it a separate file
Csaba Hruska
@csabahruska
ok, java generator does separate file codegen for the serializer
Soren
@srnb_gitlab
@csabahruska Is there a "test case" for backends? I.e. some program where it's easy to see whether a backend is working fully and correctly?
Csaba Hruska
@csabahruska
not for mobiles (started to work on, not finished)
Soren
@srnb_gitlab
I'll see what I can do; I feel very likely to get stuck on implementing it into something but I'll take a look at the C++ example and the existing Java code
Csaba Hruska
@csabahruska
also check purescript webgl
that is working
in the online editor
Soren
@srnb_gitlab
I haven't been able to digest the purescript as of yet (I can't figure out where some of the functions are coming from), but I'll give it another go once I've finished toJSON