Better HN
topnewbestaskshowjobs
Log inSign up

foomanmanfoo

10 karma · joined Mar 12, 2014 (12y ago) · 3 submissions

Submissions

comment 2y ago · link · parent

Unsure of performance but using R's `data.table`(which has uses beyond this example so installing this library shouldn't be a one off)

   library(data.table)
   v <- rbindlist(list(
       data.table(e1=1, string='one'),
       data.table(e1=1, string='two'),
       data.table(e1=1, string='three'),
       data.table(e1=1, string='one'),
       data.table(e1=1, string='four'),
       data.table(e1=1, string='two'))
    )
   v[, list(counter= sum(e1)),by= string]

2.

Using Terra (LuaJIT+LLVM) to Write Faster Extensions for R(people.mozilla.org ↗)

6 points · by foomanmanfoo · 12y ago · discuss

comment 12y ago · link · parent

I've been toying with LuaJIT+Terra for writing extensions to R (see http://people.mozilla.org/~sguha/blog/2013/08/01/rterra_firs...)