similar to: Is there a way to detect when gc() is called?

Displaying 20 results from an estimated 20000 matches similar to: "Is there a way to detect when gc() is called?"

2002 Aug 13
1
mdct.c pointer to array conversion
Hi all, I'm attempting to convert all the pointers to arrays the mdct_backward function so it can be partitioned off for a hardware implementation. Although this code is quite short I'm finding it a little tricky. As it stands, mdct_backward is passed values by reference i.e. void mdct_backward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out) o my modified version starts void
2011 Jul 22
1
reg.finalizer and connection gc -- which runs when (and why)?
With this set-up options(warn = 1) tf <- tempfile() finalizer <- function(obj) { message("finalizer") close(obj$f) } this code works ev <- new.env() ev$f <- file(tf, "w") reg.finalizer(ev, finalizer) rm(ev) gc() whereas this (reversing the order of file() and reg.finalizer()) ev <- new.env() reg.finalizer(ev, finalizer) ev$f <- file(tf,
2010 Dec 21
2
[LLVMdev] complex numbers with LLVM
Hi, I'm working on a project to generate native code for a domain specific langauge where the user defines functions in the complex plane. This implies that I need to support complex numbers as a datatype with LLVM. Its fairly straightforward to create a struct of two floats (or doubles, etc.) and do the simple operations like add, subtract, multiply, divide, etc. However, things get
2002 Aug 16
2
Setting up the trig tables.
As some of you know, I'm creating a hardware MDCT core. At the moment I'm working out the best way to create a lookup table for the trig values, as set up in mdct_init: /* trig lookups... */ for(i=0;i<n/4;i++){ T[i*2]=FLOAT_CONV(cos((M_PI/n)*(4*i))); T[i*2+1]=FLOAT_CONV(-sin((M_PI/n)*(4*i))); T[n2+i*2]=FLOAT_CONV(cos((M_PI/(2*n))*(2*i+1)));
2005 Apr 24
2
[LLVMdev] trig language-like code generator generator
http://portal.acm.org/citation.cfm?id=75700 On 4/25/05, Chris Lattner <sabre at nondot.org> wrote: > On Sun, 24 Apr 2005, Tzu-Chien Chiu wrote: > > i'd like to know if there is any plan or existing work to add a Aho's > > trig language like code generator generator? > > Trig is a code generator generator? Is there any documentation for it > available
2005 Apr 24
0
[LLVMdev] trig language-like code generator generator
On Sun, Apr 24, 2005 at 07:15:03PM +0800, Tzu-Chien Chiu wrote: > i'd like to know if there is any plan or existing work to add a Aho's > trig language like code generator generator? I'm not aware of either the trig language code generator nor any work to implement it in LLVM. > "...If you are starting a new port, we recommend that you write the > instruction
2005 Apr 24
0
[LLVMdev] trig language-like code generator generator
On Sun, 24 Apr 2005, Tzu-Chien Chiu wrote: > i'd like to know if there is any plan or existing work to add a Aho's > trig language like code generator generator? Trig is a code generator generator? Is there any documentation for it available anywhere? -Chris > "...If you are starting a new port, we recommend that you write the > instruction selector using the
2005 Apr 24
4
[LLVMdev] trig language-like code generator generator
i'd like to know if there is any plan or existing work to add a Aho's trig language like code generator generator? "...If you are starting a new port, we recommend that you write the instruction selector using the SelectionDAG infrastructure." any other things i should know before i write one? thank you.
2002 Nov 14
1
Citrix trigging printing bug??
Hi We have a mystical error occurring in a special case. When we run a citrix client on the Windows client we will not receive any printouts - no printer dialogue box are opened either. From windows we get nothing - no message box no nothing. * We are running SAMBA 2.2.6 on solaris 7 * We are running a citrix client on Windows 2000 Pro SP3 connected to the SAMBA without domain. The Citrix
2005 Apr 24
0
[LLVMdev] trig language-like code generator generator
On Mon, 25 Apr 2005, Tzu-Chien Chiu wrote: > http://portal.acm.org/citation.cfm?id=75700 Oh, tWig. :) Yes, tree pattern matching is exactly the direction we are heading. We are slowly making the code generators more and more automatically generated as time goes on. The SelectionDAG infrastructure is mean to support exactly this (perform Tree or DAG pattern matching on the optimized DAG
2012 Mar 22
5
Ubuntu Lucid, R 2.14.2, and ggplot2
I've just updated to the latest R (2.14.2) on my Ubuntu Lucid box, and now the ggplot2 installed as a .deb package fails to work. $ R -e 'library(ggplot2)' Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : package ?proto? does not have a NAMESPACE and should be re-installed Calls: library -> .getRequiredPackages2 -> library Execution
2019 Aug 21
1
Core dumped - net ads dns gethostbzname
Hi. Performing a DNS search for a hostname results in a segmentation fault: ## Debian 10 Buster 64bit root at hostxzy:~# net ads dns gethostbyname name $(hostname) Bad talloc magic value - unknown value PANIC (pid 15749): Bad talloc magic value - unknown value BACKTRACE: 12 stack frames: ?#0 /lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0x32) [0x7f0827 a408d2] ?#1
2002 Jun 27
2
Fastest way to find the last index k such that x[k] < y in a sorted vector x?
Hi, I am trying to find the fastest way to "find the last index k such that x[k] < y in a *sorted* vector x" These are my two alternatives: x <- sort(rnorm(1e4)) y <- 0.2 # Alt 1 k <- max(1, sum(x < y)) # Alt 2 "divide and conquer" lastIndexLessThan <- function(x, y) { k0 <- 1; k1 <- length(x) while ((dk <- (k1 - k0)) >
2019 Jan 30
2
[FORGED] r-base is already the newest version (3.5.2-1bionic)
Rolf, Briefly as I don't have sufficient time to catch up on all these wordy emails... On 30 January 2019 at 15:18, Rolf Turner wrote: | On 1/30/19 2:03 PM, Dirk Eddelbuettel wrote: | > | Now *that* was a revealing suggestion! I did that and got: | > | | > | > Desired=Unknown/Install/Remove/Purge/Hold | > | > |
2010 Sep 13
2
How to do a trig regression
Hello All, I cant seem to do a trig regression in R. The equation is as follows : y = a+b*(sin((2*pi*x/360) - c))^2 a, b, c are coefs that I want. y, x are input vectors. The equation I put into R: lm(y ~ sin(2*pi*x/360)^2) This equation is missing the c and I dont get the right answer. Also, I dont know how to plot the lm over the x values instead of the indices. Any help is sincerely
2017 May 08
3
r-cran-rjava dependencies on debian jesse, library(rJava) fails when default-jre is missing
Hi, Dirk Eddelbuettel advised me to write here. Here is my original letter to him: I would like to enquire about package r-cran-rjava on Debian jesse. It seems that if default-jre package is not installed, but openjdk-7-jre is installed, then library(rJava) in R fails. I?ve been bitten by this today and I wonder whether this an issue of mine, or is this a possible bug. My server admin used
2002 Jan 24
3
Best way to check/assert a certain version of or a package
When loading a package with library(APkg) or require(APkg) I would like to make sure that (1) the correct version of [R] is installed. If not an informative error message should be given. I would also like to make sure that (2) another required package which is loaded from within the APkg package (by require(OtherPkg)) is of a certain version or later. First of all, I believe that the check
2019 Jan 30
2
[FORGED] r-base is already the newest version (3.5.2-1bionic)
On 30 January 2019 at 12:33, Rolf Turner wrote: | On 1/30/19 11:53 AM, Dirk Eddelbuettel wrote: | > | > Rolf, | > | > I think it may help to read-up on dpkg and apt. Instead of 'whereis' do | > | > dpkg -l r-base-core And I also meant 'dpkg -L r-base-core'. Both -l and -L do useful (but different) things. | Now *that* was a revealing suggestion! I did
2008 May 03
2
Name resolution error help needed
Hello, I've checked the FAQ and followed steps I can find there. I made sure my /etc/hosts is correct as in the FAQ. I tried complete uninstall/reinstall of Wine and data. Iceweasel and all other normal linux programs work fine to resolve addresses. WoW under Wine works fine. Fresh install of Firefox for Windows only works under Wine if I use a IP address instead of a hostname, so Wine
2016 Dec 20
2
Request: Increasing MAX_NUM_DLLS in Rdynload.c
On Tue, Dec 20, 2016 at 7:04 AM, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote: > On reason for hitting the MAX_NUM_DLLS (= 100) limit is because some > packages don't unload their DLLs when they being unloaded themselves. I am surprised by this. Why does R not do this automatically? What is the case for keeping the DLL loaded after the package has been unloaded? What