search for: repres

Displaying 20 results from an estimated 54 matches for "repres".

Did you mean: reprex
2019 Jun 05
2
The way of implementing structs of Rust bindings
Hi, I'm now implementing generators of Rust, and I faced a problem. In order for the wrapper to 'understand' the struct passed from C API, it is required to incorporate the definition of the struct in C into Rust code. I have two approaches. 1. Create raw struct(#[repr(C)]), which has the equivalent memory mapping to C struct and access through this struct in Rust 2. Use bindgen to
2019 Jun 05
1
Re: The way of implementing structs of Rust bindings
...ndings. In order to avoid this > > situation, you can define the same struct in C and Rust and then access > the > > API struct in C and then Rust accesses the data through this struct. This > > means that > > Sure, I understand all this. We use the default C memory > representation for the C compiler in use. Rust should be able to deal > with this naturally. > > > # 2nd approach > > > > The above is easily done by 'bindgen', which automatically generates rust > > ffi bindings to C library. By using this, API struct is automatical...
2019 Aug 16
0
[nbdkit PATCH 2/2] rust: Add support for dynamic .thread_model
We do not promise API stability for non-C languages; this is an API break as follows: instead of calling plugin_init with a static model, you can now populate .thread_model in the Plugin struct, with a default to Parallel. As in C, the model is still chosen at .load time (at most, making it a function allows you to alter it based on configuration), and not something that can change
2019 Aug 16
1
Re: [nbdkit PATCH 2/2] rust: Add support for dynamic .thread_model
On Fri, Aug 16, 2019 at 12:08:11PM -0500, Eric Blake wrote: > We do not promise API stability for non-C languages; this is an API > break as follows: instead of calling plugin_init with a static model, > you can now populate .thread_model in the Plugin struct, with a > default to Parallel. As in C, the model is still chosen at .load time > (at most, making it a function allows you
2019 Aug 16
7
[nbdkit PATCH 0/2] rust: Implement some missing v2 callbacks
Similar to what I just did for OCaml (this IS an API break, requiring recompilation of any existing Rust plugin), and done because I want to add fast_zero support to both languages as part of my upcoming fast zero series. Figuring out how to get extents working was hard enough that I punted that, still. Eric Blake (2): rust: Implement can_cache rust: Add support for dynamic .thread_model
2019 Jun 05
0
Re: The way of implementing structs of Rust bindings
...in API, you have to modify Rust bindings. In order to avoid this > situation, you can define the same struct in C and Rust and then access the > API struct in C and then Rust accesses the data through this struct. This > means that Sure, I understand all this. We use the default C memory representation for the C compiler in use. Rust should be able to deal with this naturally. > # 2nd approach > > The above is easily done by 'bindgen', which automatically generates rust > ffi bindings to C library. By using this, API struct is automatically > generated. However,...
2002 Nov 26
1
script-shell sftp
hello, how use sftp2 in a shell-script ( under unix : OS ) with the passphrase ?? my apologyse for my english thanks for yours reponses -------------- next part -------------- A non-text attachment was scrubbed... Name: jean-bernard.santabodia.vcf Type: text/x-vcard Size: 226 bytes Desc: Carte pour Jean-Bernard SANTABODIA Url :
2017 Jun 20
2
Unable to get transaction opinfo for transaction ID gluster version 3.6
..., seul l'administrateur d?l?gu?, le directeur g?n?ral ou son mandataire expr?s est habilit? ? souscrire des engagements au nom de Smals. Si ce message ne vous est pas destin?, nous vous prions de nous le signaler imm?diatement et de d?truire le message. According to the provisions regarding representation of the non profit association in its bylaws, only the chief executive officer, the general manager or his explicit agent can enter into engagements on behalf of Smals. If you are not the addressee of this message, we kindly ask you to signal this to us immediately and to delete the mess...
2007 Aug 05
5
accent
Salut alex, est-ce qu''il est possible d''avoir la liste de tous les accents qu''il est possible de représenter avec wxruby2, comme "é" par exemple. merci Sebastien _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2015 Apr 23
3
Usar una matriz sparse desde python a R
Hola erreros Estoy rizando el rizo con esto de las matrices sparse y he encontrado la forma de hacerlo en python, que va rapidísimo. Por tanto tengo una matriz sparse en un objeto python con esta info: <138493x26744 sparse matrix of type '<type 'numpy.int64'> Quiero hacer lo mismo con R pero me he topado con la lentitud de los bucles para rellenar la sparse (también por mi
2017 Jul 14
3
Next steps for optimization remarks?
...ticularly easy to read. I guess > this can be mitigated with some filtering approach, I and Simon > discussed it offline. Can you please elaborate? > > 2) Yes, indeed `opt-viewer` takes forever for large testcases to > process. I think that it could lead to exploring a better > representation than YAML which is, indeed, a little slow to parse. To > be honest, I'm torn about this. > YAML is definitely really convenient as we already use it somewhere in > tree, and it has an easy textual repr. OTOH, it doesn't seem to scale > that nicely. Agreed. We now have...
2020 Sep 01
3
Re: [nbdkit PATCH 2/2] ocaml: Implement .list_exports and friends
On 9/1/20 8:25 AM, Eric Blake wrote: > Fairly straightforward. I'd love for type export to be a bit more > flexible to make description optional, but could not figure out how to > decode that from the C side of things, so for now this just requires > the caller to supply a description for all exports during > .list_exports. > Maybe I did figure it out after all,
2017 Jun 19
8
Next steps for optimization remarks?
Hello all, In https://www.youtube.com/watch?v=qq0q1hfzidg, Adam Nemet (cc'ed) describes optimization remarks and some future plans for the project. I had a few follow-up questions: 1. As an example of future work to be done, the talk mentions expanding the set of optimization passes that emit remarks. However, the Clang User Manual mentions that "optimization remarks do not
2019 Jun 27
0
[PATCH 7/9] Rust bindings: Complete actions
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> --- generator/rust.ml | 283 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 259 insertions(+), 24 deletions(-) diff --git a/generator/rust.ml b/generator/rust.ml index aa8b249ff..79e16dfc6 100644 --- a/generator/rust.ml +++ b/generator/rust.ml @@ -60,10 +60,11 @@ let generate_rust
2017 Jul 14
2
Next steps for optimization remarks?
...cedural optimizations which in turn generates more > remarks. > 2) As pointed out earlier, DI is not always reliable. > >> >> >> 2) Yes, indeed `opt-viewer` takes forever for large testcases to >> process. I think that it could lead to exploring a better >> representation than YAML which is, indeed, a little slow to parse. To >> be honest, I'm torn about this. >> YAML is definitely really convenient as we already use it somewhere in >> tree, and it has an easy textual repr. OTOH, it doesn't seem to scale >> that nicely. >&g...
2018 Feb 19
0
[RFC PATCH v3 0/3] Enable virtio_net to act as a backup for a passthru device
On Sat, 17 Feb 2018 09:12:01 -0800, Alexander Duyck wrote: > >> We noticed a couple of issues with this approach during testing. > >> - As both 'bypass' and 'backup' netdevs are associated with the same > >> virtio pci device, udev tries to rename both of them with the same name > >> and the 2nd rename will fail. This would be OK as long as
2010 Mar 31
1
Hyphen search with parse_query()
I'm trying to index the word "peter-bengtsson" (which is different from "peter" & "bengtsson" and is different from "peterbengtsson") and find it. To start with I'm trying to use a basic python script to get to grips with it. When I do this:: qp = xapian.QueryParser() stemmer = xapian.Stem("english") qp.set_stemmer(stemmer)
2019 Jun 27
0
[PATCH 4/9] Rust bindings: Add generator of structs
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> --- generator/rust.ml | 87 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 85 insertions(+), 2 deletions(-) diff --git a/generator/rust.ml b/generator/rust.ml index 251eb1594..174f6ded3 100644 --- a/generator/rust.ml +++ b/generator/rust.ml @@ -29,13 +29,21 @@ open Structs open C
2020 Sep 01
0
Re: [nbdkit PATCH 2/2] ocaml: Implement .list_exports and friends
...a pointer to an OCaml block, or 1 in which case it's an integer-like thing shifted left by one bit. Is_block() simply checks the bottom bit. Val_int(0) turns C int 0 into an OCaml int. Which is done by shifting it left one place and setting the bottom bit. IOW it returns C 1. Also None is represented as OCaml 0 (so C 1): https://rwmj.wordpress.com/2009/08/04/ocaml-internals/ OCaml blocks are lists of values allocated on the OCaml heap: https://rwmj.wordpress.com/2009/08/05/ocaml-internals-part-2-strings-and-other-types/ and those val...
2008 May 18
1
REGRESSION: New "megatec" driver does't work for UPS that was managed by old fentonups driver
Hi there, A couple years ago, I had patched the "fentonups" nut driver to allow it to work with my Unitek Alpha 500 UPS. My patch had been accepted and incorporated in the standard fentonups driver. I have had no time to stay involved in the "nut" project since (and besides this I'm not a developper...). 2 days ago I upgraded from Ubuntu Gutsy to Ubuntu Hardy and got