Giter Club home page Giter Club logo

bigstringaf's People

Contributors

anmonteiro avatar anuragsoni avatar dinosaure avatar ghilesz avatar hannesm avatar hhugo avatar kevinji avatar misterda avatar ncik-roberts avatar rgrinberg avatar samoht avatar seliopou avatar thedufer avatar tiensonqin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bigstringaf's Issues

Are there good reasons to expose `external` in the module interface?

I have seen pain caused by exporting external instead of val in a .mli (you cannot later define to redefine the functions in a slightly different way, for example to expose a different exception in the failure case; in general this makes the interface less flexible), and never heard of any tangible performance gain in presence of reasonable inlining.

Is it a conscious choice to expose externals in the interface, or would you use val just as well?

Unbound module Bigstringaf

After installed, I tried to use in ocaml.
test passed, and I can find it in ocamlfind list
Anything wrong? sorry I am new in ocaml.

>ocaml
        OCaml version 4.09.0

# open Bigstringaf;;
Error: Unbound module Bigstringaf
# require "Bigstringaf";;
Error: Unbound value require

I have the same problem in mirageos.

Have this installed following:

opam pin add -n bigstringaf .
opam install --deps-only bigstringaf
opam install bigstringaf

Implement `add` function[s]

Something like Buffer.add_bytes but for Bigarray.

val add: ~out:t -> t -> unit

Maybe also the similar functions but from bytes and string, to be consistent with blit functions.

Provide safe blit/memcmp versions?

(I'm looking at this library from MPR#7772.)

It sounds like a good idea to provide a safe version of all unsafe functions exposed (especially since checking for bounds without overflowing is actually tricky), and you generally do it except for the blit and memcmp functions. Wouldn't it make sense to provide bound-checking versions of those as well?

Cannot install on Windows 7 x64 bit

Hello, dear friends!
Please help to figure out what i am doing wrong here:

$ opam install bigstringaf
The following actions will be performed:

  • install bigstringaf 0.6.1

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><>
[bigstringaf.0.6.1] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of bigstringaf failed at "D:\cygwin64\home\root\OCaml64\home\root\.opam\ocaml-variants.4.08.0+mingw64c\bin\dune.exe build -p bigstringaf -j 7".

#=== ERROR while compiling bigstringaf.0.6.1 ==================================#

context 2.0.6 | win32/x86_64 | ocaml-variants.4.07.1+msvc64c | git+https://github.com/fdopen/opam-repository-mingw.git#opam2

path ~/.opam/ocaml-variants.4.08.0+mingw64c/.opam-switch/build/bigstringaf.0.6.1

command D:\cygwin64\home\root\OCaml64\home\root.opam\ocaml-variants.4.08.0+mingw64c\bin\dune.exe build -p bigstringaf -j 7

exit-code 1

env-file ~/.opam/log/bigstringaf-5708-42bb52.env

output-file ~/.opam/log/bigstringaf-5708-42bb52.out

output

ocamlc lib/bigstringaf_stubs.obj (exit 2)

(cd _build/default/lib && D:\cygwin64\home\root\OCaml64\home\root.opam\ocaml-variants.4.08.0+mingw64c\bin\ocamlc.opt.exe -g -I D:\cygwin64\home\root\OCaml64\home\root.opam\ocaml-variants.4.08.0+mingw64c\lib\bigarray-compat -ccopt -nologo -ccopt -O2 -ccopt -Gy- -ccopt -MD -ccopt -Wall -ccopt -Wextra -ccopt -Wpedantic -o bigstringaf_stubs.obj bigstringaf_stubs.c)

cl : Command line error D8021 : invalid numeric argument '/Wextra'

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build bigstringaf 0.6.1
+-

  • No changes have been performed

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.