Re: C++ access from scala

Ruslan Shevchenko <[email protected]> Thu, 25 Aug 2016 15:59:12 +0000
Newsgroups gmane.comp.lang.scala
Message-ID <CAD6JjK9tFR_eo62TOn0y4iqKLuysTTqfz=OoQjLip3mH6a_c4Q@mail.gmail.com>
--001a114b1c7a439953053ae77b84
Content-Type: text/plain; charset=UTF-8

  You can use offheap memory buffer. Same memory chunk can be viewed as
MappedByteBuffer for java and mmap mapped region from C++/C  side.
 // Well-known project wich use this approach:
https://github.com/real-logic/Aeron


On Thu, Aug 25, 2016 at 6:43 PM Paul Weiss <[email protected]> wrote:

> Hi,
>
> Are there any better alternatives to accessing C++ libraries from scala
> other than JNI.  Ideally would like to avoid copying data into the C++
> memory space via off heap or other mechanism.  Have legacy C++ code libs
> that need integration with scala programs.
>
> thanks,
> -paul
>
> --
> You received this message because you are subscribed to the Google Groups
> "scala-language" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

--001a114b1c7a439953053ae77b84
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">=C2=A0 You can use offheap memory buffer. Same memory chun=
k can be viewed as MappedByteBuffer for java and mmap=C2=A0mapped region fr=
om C++/C =C2=A0side.<div><div><div>=C2=A0// Well-known project wich use thi=
s approach:=C2=A0<a href=3D"https://github.com/real-logic/Aeron">https://gi=
thub.com/real-logic/Aeron</a><span style=3D"line-height:1.5">=C2=A0</span><=
/div></div></div><div><span style=3D"line-height:1.5"><br></span></div></di=
v><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Thu, Aug 25, 2016 at 6=
:43 PM Paul Weiss &lt;<a href=3D"mailto:[email protected]">paulweiss.=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div d=
ir=3D"ltr">Hi,<div><br></div><div>Are there any better alternatives to acce=
ssing C++ libraries from scala other than JNI.=C2=A0 Ideally would like to =
avoid copying data into the C++ memory space via off heap or other mechanis=
m.=C2=A0 Have legacy C++ code libs that need integration with scala program=
s.</div><div><br></div><div>thanks,</div><div>-paul</div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;scala-language&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]" targ=
et=3D"_blank">[email protected]</a>.<br>
For more options, visit <a href=3D"https://groups.google.com/d/optout" targ=
et=3D"_blank">https://groups.google.com/d/optout</a>.<br>
</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;scala-language&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">scal=
[email protected]</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

--001a114b1c7a439953053ae77b84--