Coder Social home page Coder Social logo

Comments (8)

LiangliangSui avatar LiangliangSui commented on May 27, 2024

Hi @chaokunyang , Have you started implementing this feature? If it hasn't been implemented yet, I can take over and implement this.

from incubator-fury.

chaokunyang avatar chaokunyang commented on May 27, 2024

@LiangliangSui I haven't, feel free to take over it

from incubator-fury.

LiangliangSui avatar LiangliangSui commented on May 27, 2024

Okay, I will do this.

from incubator-fury.

LiangliangSui avatar LiangliangSui commented on May 27, 2024

@chaokunyang We currently use UTF8 for cross-language serialization, and only Java(not cross-language) uses Latin/UTF16.

  public void writeString(MemoryBuffer buffer, String value) {
    if (isJava) {
      writeJavaString(buffer, value);
    } else {
      writeUTF8String(buffer, value);
    }
  }

Will we use UTF16 as the default cross-language String encoding in the future?

I see that the cross-language currently designed in fury_xlang_serialization_spec still uses UTF8 as the default.
image

from incubator-fury.

chaokunyang avatar chaokunyang commented on May 27, 2024

Depends on the language and the string. For golang, since the string is utf-8 encoded already. Fury go will encode data as utf8 string by a copy. But java/javascript/python may encode string as latin1 or utf16 and send to furygo. So we need to support utf16 too. And if the peer language, we may configure furygo use latin1/utf16 by default too.

from incubator-fury.

LiangliangSui avatar LiangliangSui commented on May 27, 2024

But java/javascript/python may encode string as latin1 or utf16 and send to furygo.

Latin1/UTF16 is only used in Language.JAVA and will not be sent to furygo.

from incubator-fury.

LiangliangSui avatar LiangliangSui commented on May 27, 2024

Okay, I got it.

from incubator-fury.

chaokunyang avatar chaokunyang commented on May 27, 2024

In the future, java/javascript/python may all encode string as latin1/utf16 and send to furygo.

from incubator-fury.

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.