Code Monkey home page Code Monkey logo

Comments (11)

outime avatar outime commented on May 21, 2024 2

Thanks a lot for this cool lib!

from telegram.

mukel avatar mukel commented on May 21, 2024 1

It will be uber cool to run bots on the browser via Scala.js
uPickle looks good, I'll look into it. Stay tuned!

from telegram.

mukel avatar mukel commented on May 21, 2024 1

Success!!! Finally managed to port all the serialization to circe, enough to run a simple bot (without multipart uploads). It's far from finished but workable.

from telegram.

TobsCore avatar TobsCore commented on May 21, 2024 1

@mukel You might wanna check out https://github.com/lihaoyi/requests-scala as it looks pretty sweet.

from telegram.

laughedelic avatar laughedelic commented on May 21, 2024

How hard would it be to support Scala.js?

from telegram.

mukel avatar mukel commented on May 21, 2024

Well, JSON serialization depends on reflection and json4s which does not support Scala.js , I've been playing with circe; which supports Scala.js but IMHO it's not quite there yet in terms of working out-of-the-box; some serialization boilerplate is needed.
Except for the JSON stuff (and some serialization) all other components can be ported easily.

from telegram.

laughedelic avatar laughedelic commented on May 21, 2024

I see. What do you think about using µPickle for JSON serialization?

from telegram.

laughedelic avatar laughedelic commented on May 21, 2024

Yeah, I was also thinking about running a bot on AWS Lambda on Node.js.

from telegram.

mukel avatar mukel commented on May 21, 2024

I have a working prototype using RosHttp with some quirks e.g. cannot download files. It can be fixed but the library seems to be abandoned. Any good http client library for ScalaJs?

from telegram.

laughedelic avatar laughedelic commented on May 21, 2024

I don't know, haven't used any. Have you tried asking on the scala-js gitter channel?

from telegram.

laughedelic avatar laughedelic commented on May 21, 2024

sttp just got Scala.js support: https://twitter.com/adamwarski/status/1001527624202686464

from telegram.

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.