Better HN
topnewbestaskshowjobs
Log inSign up

smarr

234 karma · joined Sep 30, 2014 (12y ago) · 54 submissions

https://stefan-marr.de/
Submissions

comment 3y ago · link · parent

> is that Java compiled or interpreted?

The figure for the JIT-compiled numbers uses a standard HotSpot JVM, with JIT compilation. The figures for the interpreter numbers uses a standard HotSpot JVM with the -Xint flag, so, only using the Java bytecode interpreter.

The TruffleSOM interpreter is AOT-compiled, so, it's a native binary, which is then interpreting the SOM code.

comment 3y ago · link · parent

With the amount of work that's needed to even attempt such a study and get to a point that one can precisely define which variable one is actually measuring, there are indeed compromises needed.

But please feel free to replicate the study for your preferred language. I am happy to discuss more about why we made certain choices.

comment 3y ago · link · parent

Please see Figure 2 in the blog post https://stefan-marr.de/2023/10/ast-vs-bytecode-interpreters/... or Sec. 5.2 in the paper https://stefan-marr.de/papers/oopsla-larose-et-al-ast-vs-byt...

We report on results for both, with and without just-in-time compilation. The specific focus for this work was pure interpreter performance in the context of metacompilation systems, but before compilation had a chance to kick in.

For both RPython and Truffle/Graal, it's possible to disable the JIT compilers and measure pure interpreter speed.

comment 3y ago · link · parent

Please see Figure 2 in the blog post https://stefan-marr.de/2023/10/ast-vs-bytecode-interpreters/... or Sec. 5.2 in the paper https://stefan-marr.de/papers/oopsla-larose-et-al-ast-vs-byt...

We report on results for both, with and without just-in-time compilation. The specific focus for this work was pure interpreter performance in the context of metacompilation systems, but before compilation had a chance to kick in.

You are free to disagree with the specific design choices of the AST and bytecode interpreters for SOM, but we put quite some effort in to have an as fair as possible comparison.

5.

Which Interpreters Are Faster, AST or Bytecode?(stefan-marr.de ↗)

5 points · by smarr · 3y ago · discuss

comment 3y ago · link · parent

Yeah, the serve seems to be temporarily down. The paper can also be found here: https://tugawa.github.io/ejs-comlan-preprint.pdf

7.

The Shape of 1.7M Lines of Code(stefan-marr.de ↗)

1 points · by smarr · 5y ago · discuss

8.

Preventing Concurrency Bugs from Causing Harm, Automatically(stefan-marr.de ↗)

1 points · by smarr · 5y ago · discuss

9.

Irrationally Annoyed: Sigplan Post Wrote 30Years of PL Research Out of Existence(stefan-marr.de ↗)

3 points · by smarr · 6y ago · discuss

10.

Optimizing the “Unoptimizable” Using Old Ideas(stefan-marr.de ↗)

1 points · by smarr · 6y ago · discuss

11.

What if we could see all concurrency bugs in the debugger?(stefan-marr.de ↗)

122 points · by smarr · 7y ago · 27 comments

12.

SOMns 0.7.0 Release with Extension Modules and Artifacts(stefan-marr.de ↗)

1 points · by smarr · 7y ago · discuss

13.

Generating an Academic Artifact from a Benchmarking Setup as Part of CI(stefan-marr.de ↗)

2 points · by smarr · 7y ago · discuss

14.

Another Decade of SOM Language Implementation(stefan-marr.de ↗)

2 points · by smarr · 7y ago · discuss

15.

A Typical Truffle Specialization Pitfall(stefan-marr.de ↗)

1 points · by smarr · 8y ago · discuss

16.

How to Design Collection Libraries?(stefan-marr.de ↗)

2 points · by smarr · 8y ago · discuss

17.

Few Versatile vs. Many Specialized Collections: Designing Collection Libraries(stefan-marr.de ↗)

2 points · by smarr · 8y ago · discuss

18.

Communicating Sequential Processes for Newspeak/SOMns(stefan-marr.de ↗)

2 points · by smarr · 9y ago · discuss

comment 10y ago · link · parent

A few of the smaller benchmarks have been ported to C++ already: https://github.com/smarr/are-we-fast-yet/tree/wip/cpp/benchm...

But the bigger ones are not yet (so, no results yet).

One of the important questions to answer first is how the mapping should be done. A naive version using new/delete/smartpointers is going to have performance issues. Other options would be to use arena allocators and completely remove memory management overhead from the equation. Depending on what comparison/C++ usage scenario is desired, both options would be useful.

12