Displaying 20 results from an estimated 600 matches similar to: "[LLVMdev] Is LLVM appropriate for implementing a shell interpreter?"
2011 Mar 24
0
[LLVMdev] Is LLVM appropriate for implementing a shell interpreter?
Mu Qiao wrote:
> Hi devs,
>
> We are implementing a library that interprets shell scripts so that
> other programs could efficiently talk to bash. We'd like to hear your
> advice on whether LLVM is appropriate for us. Here are our considerations:
>
> In most cases our library will interpret each script just once. Our
> current approach is using a manual
2010 Feb 22
2
change email subscription
Dear R team,
As this is a university email address with very small inbox limit, can I
please change my R email subscription to another email address instead of
this one? My new email address is wendy2.qiao@gmail.com. I have change my
email in my profile, but seems that does not change my subscription.
Thank you.
Wendy
[[alternative HTML version deleted]]
2017 Apr 11
3
Potential issue with noalias @malloc and @realloc
Hi Kevin,
On April 11, 2017 at 4:14:14 PM, Flamedoge (code.kchoi at gmail.com) wrote:
> So only "non-freed" malloc pointers are No-Alias which makes it
> flow-sensitive. There is no reason why malloc couldn't return previously
> freed location.
Yes.
Talking to Nick Lewycky on IRC, I figured out a shorter way of saying
what I wanted to say. We know that programs like this
2013 Jul 24
2
[LLVMdev] Program compiled with Clang -pg and -O crashes with SEGFAULT
Hi,
I am trying to compile a simple program with Clang 3.3 on Linux and used -pg and -O2 option. The program would crash with segfault. Interestingly if I compile it with -pg option only it works. Do you have any idea why it crashes? And any workaround?
$ cat myprog.c
int main() {
return 0;
}
$ clang -v -pg -O2 myprog.c
clang version 3.3 (tags/RELEASE_33/final)
Target:
2011 Apr 10
3
count number of TRUEs in each row
Hi all,
I have a huge matrix of TRUE/FALSE table like following, and I want to count
the number of TRUEs in each row. Instead of looping through each row and do
length(Z[Z==TRUE]), I am wondering if there is an easier way of doing this.
[,1] [,2] [,3]
[1,]TRUE FALSE FALSE
[2,]FALSE TRUE TRUE
Thank you in advance.
Wendy
--
View this message in context:
2013 Jul 24
0
[LLVMdev] Program compiled with Clang -pg and -O crashes with SEGFAULT
Hi Qiao,
On 24/07/13 08:23, Qiao Yang wrote:
> Hi,
>
> I am trying to compile a simple program with Clang 3.3 on Linux and used -pg and -O2 option. The program would crash with segfault. Interestingly if I compile it with -pg option only it works. Do you have any idea why it crashes? And any workaround?
>
> $ cat myprog.c
> int main() {
> return 0;
> }
>
> $
2016 Jul 12
2
Should analyses be able to hold AssertingVH to IR? (related to PR28400)
On Mon, Jul 11, 2016 at 7:51 PM, Sanjoy Das <sanjoy at playingwithpointers.com>
wrote:
> Hi Sean,
>
> Sean Silva wrote:
> > While building test-suite with the new PM, I ran into problems with
> > AssertingVH being triggered which is obvious in retrospect:
> > https://llvm.org/bugs/show_bug.cgi?id=28400
> >
> > Both cases I ran into revolve around LVI
2012 Mar 15
1
How to change the number of axis?
Hi,
I use R to plot a graph with 20000 frames. Because the limit of pixel
or others, the screen fail to show the graph. So I have to draw a
point every 10 frames. So the total of x axis becomes 2000.
So when imaging the picture, I still hope that the total of x-axis is
20000. I need to find a way to modify the number of axis.
How could I do this?
Thanks!
2010 Feb 21
4
replicate matrix
Hi all,
I have a matrix, for example
[,1] [,2]
[1,] 1 3
[2,] 4 6
I want to replicate the matrix twice and add an extra column at the end,
which is
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 1 3 1 3 1 3 2
[2,] 4 6 4 6 4 6 5
I found 'rep' only works for vector. Does anyone know how to replicate a
matrix, and append the matrix?
2007 Oct 27
1
problems in cross validation of SVM in pakage "e1071"
Hi:
I am a newer in using R for data mining, and find the "e1071" pakage an excellent tool in doing data mining work!
what frustrated me recently is that when I using the function "svm" and using the "cross=10" parameters, I got all the "accuracies" of the model greater than 1. Isn't that the accuracy should be smaller than 1? so I wander how, the
2016 Jul 06
4
Should analyses be able to hold AssertingVH to IR? (related to PR28400)
While building test-suite with the new PM, I ran into problems with
AssertingVH being triggered which is obvious in retrospect:
https://llvm.org/bugs/show_bug.cgi?id=28400
Both cases I ran into revolve around LVI which holds AssertingVH.
Essentially, what happens is this:
1. LVI holds an AssertingVH pointing at a BasicBlock
2. Some other pass ends up deleting that BB (e.g. SimplifyCFG)
3. BOOM
2003 Mar 04
1
Failed to play audio data file!
The extension.conf:
exten => s,1,Wait,1 ; Wait a second, just for fun
exten => s,2,Answer ; Answer the line
exten => s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
exten => s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
exten => s,5,BackGround,demo-congrats ; Play a congratulatory message
When call is coming, asterisk always failed to play the message,
2011 Nov 01
2
annotate histogram
Hi all,
I want to make a histogram like the one show
http://nar.oxfordjournals.org/content/39/suppl_1/D1011/F1.expansion.html
here , but I did not figure out how to add the red marks at the bottom of
the bars. Could anybody help? Thank you very much
--
View this message in context: http://r.789695.n4.nabble.com/annotate-histogram-tp3963960p3963960.html
Sent from the R help mailing list archive
2011 Mar 21
1
value changed after paste() function
Hi all,
I am new user in R, I am trying to to use paste function to concatenate
strings which has been fetched from database table(postgres database), the
following are my code:
when i do:
> sqlFetch(channel,'transactions')
outputs are following(only parts, there are around 200 transactions in
total)
orderid productname price quantity discount
1 T10248 potato 1.80
2017 Aug 15
2
How to set absolute path for rsync?
Dear experts,
I would like get your help for the issue with --partial-dir=*absolute path.*
I’m trying to use rsync to send big file to server and config
--partial-dir=*absolute
path* since I want to store temp partial file in /tmp/ directory and keep
the destination folder clear.
My server is joe28, client is joe27. And here is the config on server.
root at joe28:~# cat
2014 Oct 08
1
RCMD SHLIB problem in 64 bits
I am trying to build a dll writen in C to be called by R.
Interestingly, when I set the global environment variable PATH to be
"c:\Rtools\bin;C:\Rtools\gcc-4.6.3;C:\Program Files\R\R-3.1.1\bin\*i386*;"
and I typed "RCMD SHLIB Permutation.c" in Cygwin, the dll was compiled and
I can sucessfully call functions after I had loaded it into 32 bits R via
.Call.
However, now I want
2010 Feb 20
1
coerce (list) object to type 'double'
Dear all,
I am really new to R, and I have problem here. I searched around, but did
not get a solution.
I have a numetrix matrix (20 by 25) saved in .csv. I read it as
>sx<-read.csv("sx.csv",header=F)
Then I try to convert it to numeric using
>sx<-as.numeric(sx)
Error: (list) object cannot be coerced to type 'double'
The class of sx is "data.frame".
I
2017 Aug 16
1
How to set absolute path for rsync?
Thanks so much for the quick reply, Kevin!
I tried with ssh and --partial-dir, it looks the partial file still will be
stored in local dir, but not in /tmp.
Every 1.0s: ls -al /home/joe/rsync/ /tmp/
Tue Aug 15 17:29:30 2017
/home/joe/rsync/:
total 408840
drwxr-xr-x 2 root root 4096 Aug 15 17:29 .
drwxr-xr-x 32 joe joe 4096 Aug 15 15:01 ..
*-rw------- 1 root root
2011 Nov 01
4
round up a number to 10^4
Hi all,
I have a list of numbers, e.g., X = c(60593.23, 71631.17, 75320.1), and want
to round them so the output is Y = c(60000, 80000, 80000). I tried
Y<-round(X,-4), but it gives me Y = c(60000, 70000, 80000). Do anybody know
how to round up a number to 10^4?
Thank you in advance.
Wendy
--
View this message in context:
2017 Apr 12
3
Potential issue with noalias @malloc and @realloc
The corresponding line does not exist, and it is in fact, wrong :)
C11 says nothing like that.
C++14 says:
"The lifetime of an object of type T begins when:
— storage with the proper alignment and size for type T is obtained, and —
if the object has non-trivial initialization, its initialization is
complete.
The lifetime of an object of type T ends when:
— if T is a class type with a