Displaying 5 results from an estimated 5 matches for "stopiteration".
2014 May 02
3
[LLVMdev] Question about implementing exceptions, especially to the VMKit team
Hi Kevin,
To elaborate on Philip's point, depending on the state Pyston's
runtime already is in, you may have the choice of using a hybrid of a
"pending exception" word in your runtime thread structure, and an
implicit alternate ("exceptional") return address for calls into
functions that may throw. This lets you elide the check on the
pending exception word after
2010 Nov 16
2
Debugging segfault in foreach
...luating expression\
:\n") print(r) }
tryCatch(accumulator(list(r), i), error = function(e) {
cat("error calling combine function:\n") print(e)
NULL }) \
i <- i + 1 }}, error = function(e) { if
(!identical(conditionMessage(e), "StopIteration"))
stop(simpleError(conditionMessage(e), expr))})
10: doSEQ(obj, substitute(ex), parent.frame())
11: foreach(chr = chrs, .packages = "GenomicFeaturesX", .verbose =
TRUE) %do% { .gc <- duplicate(gcache, pre.load = NULL)
on.exit(dispose(.gc)) cat("===",...
2016 May 09
1
Given a document, how do you get its ID? (perl bindings)
I am writing an indexer that will crawl our web site. Following the
recommendation here:
https://trac.xapian.org/wiki/FAQ/UniqueIds
I'm using the URL as the unique ID for each document. I see how to get a
document from the xapian database if I know its URL, but what I need is
also to be able to find out the URL from the document. Does this mean I
need to store the URL in a value in
2008 May 13
6
[LLVMdev] Iterator protocols
This is related to the general question of efficiency of unwinds. I'm
mulling over whether to use the Java-style or Python-style iterator
protocol for my language. The Python style is to have a special
exception (StopIteration) that is thrown when the end of the sequence is
reached. The Java style is to have a separate "hasNext" method on the
iterator object that says whether or not the sequence is finished.
So the question is, what's the trade-off. In most languages that support
exceptions, you tend to...
2013 Nov 15
1
Inconsistent results between caret+kernlab versions
I'm using caret to assess classifier performance (and it's great!). However, I've found that my results differ between R2.* and R3.* - reported accuracies are reduced dramatically. I suspect that a code change to kernlab ksvm may be responsible (see version 5.16-24 here: http://cran.r-project.org/web/packages/caret/news.html). I get very different results between caret_5.15-61 +