Coder Social home page Coder Social logo

Comments (3)

yoriyuki avatar yoriyuki commented on July 26, 2024

The right solution is of course use Byte. but is there any easy way out? (say, compile option)

from camomile.

kit-ty-kate avatar kit-ty-kate commented on July 26, 2024

You could set OCAMLPARAM=safe-string=0,_ before building the modules to be fixed, but as you can tell it could only be a temporary fix, and an unclean one moreover.
The only real solution IMHO, if you want to stay compatible with OCaml < 4.02, is to use the bytes compatibility library (from ocamlfind) and/or the Buffer module when it is more appropriate.

from camomile.

yoriyuki avatar yoriyuki commented on July 26, 2024

Changing String to Buffer/Bytes is a daunting task. Mostly it requires just search/replace, but you have to check the correctness and sometimes API would need to be changed. We need a temporary but easy fix. I will take a look to how to set a OCAMLPARAM in the build procedure.

from camomile.

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.