Displaying 20 results from an estimated 50 matches for "hashmaps".
Did you mean:
hashmap
2009 May 25
2
Looping through java hashmap from ruby through rjb
Greetings.
I am trying to list all keys in a java.util.HashMap field.
The Java code to do this looks like:
#
Collection c = hMap.values();
#
#
//obtain an Iterator for Collection
#
Iterator itr = c.iterator();
#
#
//iterate through HashMap values iterator
#
while(itr.hasNext())
System.out.println(itr.next());
So, I took a stab at the ruby version:
# I have a java hashmap called fields
2007 Dec 06
1
error during template parsing (??)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am rather new to puppet and set up a puppet server and some clients.
during "puppetd --server=puppetmaster.example.com --verbose" I get the
following error which says nothing to me:
err: Could not retrieve configuration: Uncaught exception compile error
(erb):241: syntax error, unexpected tIDENTIFIER, expecting $end
2005 Jul 08
8
Integrating script.aculo.us into existing javascript codebase
Hi,
I''m new to this mailing list, so first off, a big THANK YOU for the
script.aculo.us and prototype.js libraries.
I''m trying to integrate script.aculo.us into an existing pretty large
Javascript codebase (see http://openrecord.org). I''m running into a
problem with prototype.js and the existing codebase''s use of for/in
loops over an Array.
2019 Aug 05
0
[PATCH 1/2] Rust bindings: Add Event structs, Clarify Handle lifetime
Without clarifying handle's lifetime, it is unable
to see how long the callbacks which the handle
owns will live. Then, Rust compiler will infer
that the callbacks have 'static lifetime. It is
not convenient for users.
---
generator/rust.ml | 38 ++++++++++++++++++++++++++++++-
rust/src/base.rs | 23 +++++++++++++------
rust/src/error.rs |
2019 Jun 27
0
Re: [PATCH 08/11] Rust bindings: Fix memory management and format the file
---
generator/rust.ml | 461 +++++++++++++++++++++++++++++++---------------
1 file changed, 311 insertions(+), 150 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index 79e16dfc6..ee65b1073 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -61,14 +61,16 @@ let generate_rust () =
pr "
use std::collections;
use std::convert;
+use std::convert::TryFrom;
use
2005 Jun 02
2
Dynamic Dictionary Data Type?
Hello!
I have an algorithm which performs lengthy operations and I would like to
cache results. Other languages usually offer a dictionary data type
which I can use as an efficient way to dynamically cache already
calculated results - what's the best way to do this in R?
Best wishes,
Sven C. Koehler
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 () =
pr "
use
2017 Jul 20
2
Which assumptions do llvm.memcpy/memmove/memset.* make when the count is 0?
Hi all,
when I call the llvm.memcpy/memmove/memset.* intrinsics, typically I
have to pass in valid (non-dangling, non-NULL pointers) of the given
alignment. However, to what extent to these rules apply when the count
is 0? Concretely (for any variant of the three aforementioned
intrinsics): Is it UB to call them on a dangling pointer when count is
0? On a pointer of less than the given
2019 Jun 27
4
Re: [PATCH 9/9] Rust bindings: Complete bindings
Patch 9 is a kind of dumping ground of all kinds of stuff. It may be
better to spend some time with git rebase -i trying to work this into
more coherent patches.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live
2019 Jun 27
16
[PATCH 1/9] Rust bindings: Add Rust bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
Makefile.am | 4 ++++
configure.ac | 3 +++
generator/Makefile.am | 3 +++
generator/bindtests.ml | 3 +++
generator/bindtests.mli | 1 +
generator/main.ml | 5 +++++
generator/rust.ml | 34 ++++++++++++++++++++++++++++++++++
generator/rust.mli | 19 +++++++++++++++++++
2019 Jun 27
0
[PATCH 9/9] Rust bindings: Complete bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
configure.ac | 2 +
generator/bindtests.ml | 63 +++++
generator/main.ml | 2 +-
generator/rust.ml | 423 +++++++++++++++++-----------
generator/rust.mli | 5 +-
rust/.gitignore | 2 +
rust/Makefile.am
2016 Aug 15
2
KMeans - Evaluation Results
Hello,
I've recently finished with an implementation of KMeans with two
initialization techniques, random initialization and KMeans++. I would like
to share my findings after evaluating the same.
I have tested this implementation of KMeans with a BBC news article
dataset. I am currently working on evaluating the same with FIRE datasets.
Currently, clustering more than 500 documents
2019 Jul 02
16
[PATCH] Add Rust bindings
I fixed the patch I submitted before based on comments, and there are some
commits which are merged or divided. So, I will re-send all the patches.
Regards,
Hiroyuki Katsura
2009 Oct 13
0
[LLVMdev] hash extras
So, after digging around in the old llvm/ADT/hash_map, I think I
discovered the problem. Now, if you want to include
llvm/ADT/HashExtras.h, you have to include the hash_map h file from your
system (ext/hash_map in my case) and define HASH_NAMESPACE, before you
include llvm/ADT/HashExtras. It might be good to include some
documentation about that for those using HashExtras.
Regards,
Ryan
2018 Jun 15
0
CRAN Check warnings with GCC 8.1
Some time ago I (and some other CRAN package maintainers) got an email
from Brian Ripley (copied below) regarding compiler warnings under gcc
8.1. In my case this concerns package PropClust
(https://CRAN.R-project.org/package=PropClust). The check with gcc 8.1
(https://www.stats.ox.ac.uk/pub/bdr/gcc8/PropClust.out) produced a
warning about an uninitialized variable.
I cannot reproduce the warning
2007 Jan 13
1
[LLVMdev] Value* as used by the non-JITted interpreter
Hi all,
I've now got my LLVM-based model checker more or less working, but I'm
seeing something a bit strange happening.
As you may remember, I started with the lli code and extended it
considerably. I have retained something that looks vaguely like the
original ExecutionContext stack, though I now have one stack per thread,
and the whole data structure is implemented with custom
2009 Oct 13
2
[LLVMdev] hash extras
I am trying to upgrade my code to use the latest version of llvm from
svn. Whenever I include "llvm/ADT/HashExtras.h", I get error messages
like the following. Does anyone know what is going on? Thanks for any
help.
llvm[1]: Compiling Aux.cpp for Debug build (PIC)
In file included from
/home/lefever/work/memrep/src/compiler/include/Aux.h:4,
from Aux.cpp:1:
2009 Mar 12
0
[LLVMdev] a different hash for APInts
Stuart Hastings a écrit :
>
> {
> {0x00000000}, {0x33800000}, {0x34000000}, {0x34400000},
> {0x34800000}, {0x34a00000}, {0x34c00000}, {0x34e00000},
> {0x35000000}, {0x35100000}, {0x35200000}, {0x35300000},
> {0x35400000}, {0x35500000}, {0x35600000}, {0x35700000},
> ...
> {0xfffd8000}, {0xfffda000}, {0xfffdc000}, {0xfffde000},
> {0xfffe0000},
2019 Aug 05
3
Re: [PATCH] Rust bindings: Implement Event features
I fixed based on comments.
I'll send these two patches to this mailing list.
- Fix Handle -> Handle<'a>
- Add events
Regards,
Hiroyuki
2019年8月1日(木) 0:01 Pino Toscano <ptoscano@redhat.com>:
> Hi Hiroyuki,
>
> On Tuesday, 30 July 2019 07:51:37 CEST Hiroyuki Katsura wrote:
> > This patch includes:
> >
> > - Event callback handlers
> > -
2019 Jun 27
0
[PATCH 6/9] Rust bindings: Add generator of function signatures
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
generator/rust.ml | 137 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 137 insertions(+)
diff --git a/generator/rust.ml b/generator/rust.ml
index a229d5eac..aa8b249ff 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -59,8 +59,10 @@ let generate_rust () =
generate_header CStyle LGPLv2plus;
pr