Giter Site home page Giter Site logo

scalaJS support about nscala-time HOT 17 OPEN

nscala-time avatar nscala-time commented on July 21, 2024 2
scalaJS support

from nscala-time.

Comments (17)

mdedetrich avatar mdedetrich commented on July 21, 2024 2

Just letting you guys know, that I am creating a port of jodatime to Scala/Scala.js. Currently in very alpha stage (got it to compile!), but that may be another avenue to get nscala-time to work on Scala.js

from nscala-time.

mdedetrich avatar mdedetrich commented on July 21, 2024 1

Hey guys (and @bchazalet ), just letting you know that i have done an early release of Soda-Time, which is the port of Joda-Time to Scala/Scala.js. Its still in alpha stage, but since so many people were asking for it, I released it early

https://github.com/mdedetrich/soda-time

from nscala-time.

kmizu avatar kmizu commented on July 21, 2024

I think so, too. However, since nscala-time heavily depends on joda-time, unless joda-time for JavaScript (:- is provided, We cannot support scalaJS.

from nscala-time.

wookietreiber avatar wookietreiber commented on July 21, 2024

Is there a label for maybe in the future or depends on external stuff? I would attach this to this issue.

from nscala-time.

kmizu avatar kmizu commented on July 21, 2024

Hmmm. Certainly, there should be such label.

from nscala-time.

kmizu avatar kmizu commented on July 21, 2024

@wookietreiber A little while ago, I created a label maybe_in_the_future and I attached it to this issue and I reopened this issue. Are you satisfied with this?

from nscala-time.

wookietreiber avatar wookietreiber commented on July 21, 2024

Yeah, sure, looks good.

from nscala-time.

wookietreiber avatar wookietreiber commented on July 21, 2024

I don't know much about how scala-js works, but just as a thought: Will scala-js support come easier if #85 gets implemented? I.e. is it possible with scala-js to make use of the std java stuff?

from nscala-time.

xuwei-k avatar xuwei-k commented on July 21, 2024

Will scala-js support come easier if #85 gets implemented? I.e. is it possible with scala-js to make use of the std java stuff?

I don't think so. scala-js does not support Java8 datetime API yet. see https://github.com/scala-js/scala-js/tree/v0.6.4/javalib/src/main/scala/java

from nscala-time.

bchazalet avatar bchazalet commented on July 21, 2024

@mdedetrich do you have anything to share at this stage? I'm curious

from nscala-time.

mdedetrich avatar mdedetrich commented on July 21, 2024

@bchazalet As per what was said on gitter, the project is currently compiling, but some parts need to be rewritten (some business logic that used break/continue/continue to label is broken).

When this is done, I will upload it onto github, but more modifications will need to be done to actually get it to work with Scala.js.

Thankfully its at a stage where a lot of the grunt work has been done. Expect a push in probably a week

from nscala-time.

bchazalet avatar bchazalet commented on July 21, 2024

@mdedetrich that's great news, I will definitely have a look !

from nscala-time.

xuwei-k avatar xuwei-k commented on July 21, 2024

I don't think so. scala-js does not support Java8 datetime API yet. see https://github.com/scala-js/scala-js/tree/v0.6.4/javalib/src/main/scala/java

scala-js will support Java8 time https://github.com/scala-js/scala-js/tree/6a6b4f72b/javalib/src/main/scala/java/time

from nscala-time.

xuwei-k avatar xuwei-k commented on July 21, 2024

https://github.com/scala-js/scala-js-java-time

from nscala-time.

xuwei-k avatar xuwei-k commented on July 21, 2024

https://github.com/soc/scala-java-time

from nscala-time.

xuwei-k avatar xuwei-k commented on July 21, 2024

chronoscala/chronoscala#5

from nscala-time.

nafg avatar nafg commented on July 21, 2024

@kmizu haven't you seen js-joda?

from nscala-time.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.