Questions tagged [jit]

1

votes
0

answer
47

Views

As of 2018 how much of a performance advantage is gained inlining functions

Given the current state of compilers, is it still beneficial to performance to favour inlining code instead of splitting it into multiple functions. For example is the following necessarily going to be faster if inlined. const a = (x) => { b(c(d(x))) } Note: I'm looking for a general heuristic. I'm...
Undistraction
1

votes
0

answer
45

Views

pypy3 reading big file very slow

I'm trying to use pypy3 to improve the efficiency of my code. The basic flow is reading a very big file and do some processing and output. pypy3 do improve the speed of the processing part, but very very slow in reading big file, much more slower than normal python3.....I suppose pypy3 doesn't compi...
Ziqi Liu
1

votes
0

answer
27

Views

Building and testing intermediate spiderMonkey check ins

I am trying to build and test an intermediate spiderMonkey check-in/ gitHub commit. 1) When trying to run custom JavaScript file over released v31/38 of spiderMonkey, errors specifying some variables which are defined out of scope were encountered. ' warning: offsetof within non-standard-layout type...
KSHITIZ JAIN
1

votes
1

answer
46

Views

How does JVM PC counter and stack space work with JIT?

When a Java method get JIT-compiled and start running the JIT-ed native code: Is the stack space still the same with previous one which running in interpreter mode? Does the PC counter still being updated when running in JIT mode? if so, how? (Let's say we are using OpenJDK).
Anonemous
1

votes
0

answer
144

Views

Python/Numba/@jit: Avoiding global variable in a recursive function that uses the return value as a parameter

I am currently working on the following code which works running in Python but fails when I try using Numba (@jit) on the function as Numba does not seem to like global variables. I am unsure as to how I should proceed, seen that the global variable r1 needs to be used both for the following loops a...
Nicolas
1

votes
0

answer
197

Views

Android 7.0 Nougat - Checking AOT and JIT compilation in ART

For some reason, I need to use only AOT compiler in ART. According to this link: https://source.android.com/devices/tech/dalvik/jit-compiler I used four commands below adb root adb shell stop adb shell setprop dalvik.vm.usejit false adb shell start and emulator seemed to make a restart. The question...
ZodiacLeo123
1

votes
1

answer
226

Views

How to embed asmjit into own C++ project?

I am new to asmjit (and somewhat new to C++), and right now I am trying to just get asmjit working within my C++ project. I am using a Windows machine with Visual Studio 17 and C++17, and my first attempt using cmake already worked fine. However, I'd rather have asmjit embedded into my project as su...
Duke
1

votes
0

answer
55

Views

Ipyparallel and numba (jit)

I've been trying to run a code using ipyparallel. However, since some of my functions pass through jit. This ends up in the ipython console not doing anything and freezing. Here is an example: import time import numpy from numba import jit from ipyparallel import Client client = Client() # create c...
Pawel
1

votes
0

answer
49

Views

Android process layout

I came across this site and also there are some discussions about the topic here and here but I still could not find the answer. It has been stated that Dalvik had separate stacks for native and Java code, while ART has a unified stack for the native and Java code. I tried to verify this by extracti...
Hex
1

votes
0

answer
43

Views

Efficient memory management with JIT?

I'm writing a program that's doing JIT, and I'm currently setting up the executable memory like this: void *mem = mmap(NULL, len, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); // write the JIT output to mem mprotect(mem, len, PROT_READ|PROT_EXEC); I then clean it up like this: munmap(mem,...
Joseph Sible
1

votes
0

answer
68

Views

Client-Thread mysteriously leaves out Java code, thus not answering

Every line of code is executed -> Event -> Important Java code lines skipped # Client-Server # AssumeNoCodeOptimization # IDE:Processing (Processing.org by MIT) There is a Thread 'ConnectionHandler' that stays in a loop where it either sends or receives data. Before it receives the first data, ever...
CryTatch
1

votes
0

answer
49

Views

angular 6 compilation process flow and role of browser in compilation of angular app

I have done a lot of research on angular compilation process but could not clear my doubts.what is difference between aot and jit in angular compilation? Does AOT convert our html into javascript or typescript? is there any difference between typescript compiler and angular compiler? what is the flo...
Suraj Prakash Joshi
1

votes
0

answer
69

Views

Numba slower than python?

I'm really new to numba so I don't really understand why this happens. I'm running njit on a the bottleneck function of my program (Ising model) and it does slow it. My function is : @nb.njit#(nb.types.int64[:](nb.types.int64, nb.types.float64[:], nb.types.int64[:], nb.types.int64[:])) def heat_bath...
user606770
1

votes
1

answer
85

Views

How to specify numba jitclass when the class' attribute contains an instance of self

I have a simple Python class: class Node(object): def __init__(self): self._left = self self._right = self @property def left(self): return self._left @left.setter def left(self, value): self._left = value @property def right(self): return self._right @right.setter def right(self, value): self._righ...
slaw
1

votes
1

answer
76

Views

Indexing multidimensional numpy array inside numba's jitclass

I'm trying to insert a small multidimensional array into a larger one inside a numba jitclass. The small array is set specific positions of the larger array defined by an index list. The following MWE shows the problem without numba - everything works as expected import numpy as np class NumbaClass(...
JonasMu
1

votes
0

answer
65

Views

numpy.hstack() not working in a jitted function

The numba website https://numba.pydata.org/numba-doc/dev/reference/numpysupported.html says it supports numpy.hstack(). But in practice, it simply doesn't. from numba import njit import numpy as np @njit def func(data):return np.hstack((np.nan, data)) myarray = np.arange(100)*0.1 X =func(myarray) S...
mathguy
1

votes
0

answer
43

Views

Just-in-time compilation to bytecode/native code

It seems that the bytecode approach is very popular, as it is used by many popular programming languages, e.g., Java (with the JVM) and Python (using CPython). Although VM allows the same bytecode runs on different machine architectures without modification, when the speed is critical, is it still f...
user1424739
1

votes
1

answer
39

Views

The Anaconda prompt freezes when I run code with numba's “jit” decorator

I have this python code that should run just fine. I'm running it on Anaconda's Spyder Ipython console, or on the Anaconda terminal itself, because that is the only way I can use the 'numba' library and its 'jit' decorator. However, either one always 'freezes' or 'hangs' just about whenever I run i...
Ipulatov
1

votes
1

answer
13

Views

Numba JIT giving LoweringError although code works fine otherwise

I have the following code in python to calculate the Mandelbrot set. It works fine, but when I try to compile it with JIT by adding @jit decorator before the function def, it doesn't work any more. Can anybody tell me why? I would appreciate if you don't criticize my Mandelbrot calculation (I am gue...
Matthew Davies
1

votes
0

answer
11

Views

Argmax in symengine or equivalent alternative

I am working on a simple simulation of a network of nonlinear systems. In particular I have N nodes, each one composed of m units. The output function of each unit depends both on its activity and the activity of the other units in the same node. The simulation I implemented is in scipy + jitcode....
giangian
1

votes
2

answer
321

Views

How to detect an unmanaged app has aborted

I have a C# app which invokes an unmanaged C++ application via Process.Start() On some machines, if this C++ app aborts, I'm left with the Just-In-Time error dialog showing Is there a way from C# to detect that the C++ app has errored and just restart it (I don't have the source to and therefore can...
rc1
1

votes
2

answer
1.8k

Views

Dynamically Loading Page Class/Assembly: Type or name could not be found in the global namespace

I am trying to create an ASP.Net Web application that stores it's 'content' (ASPX/ASCX and assemblies) somewhere other than the file system (Inside a service, for example) and loads them in dynamically as required. I have successfully created a VirtualPathProvider that takes care of reading ASPX/Mas...
Gavin Osborn
1

votes
1

answer
164

Views

How to see native code bytes from .NETCF JIT compiler on

Can anyone suggest a way (supported or unsupported) of getting a look at native code bytes compiled by the NETCF JIT compiler. I happen to be on WinCE6.0 on an ARM platform. I'm guessing that this can be done with a native debugger, but I'm trying to figure out (essentially) how I would get my bear...
Wil S
1

votes
1

answer
140

Views

Runtime or compile time for platform-specific libraries?

I'm creating a library in C++. It links against Windows libraries on Windows and Linux libraries on Linux. It's abstracted, all is well. However, is it feasible to dynamically detect, load and use libraries (and copying header files for use) so it could be used on any platform if it was running unde...
Jookia
0

votes
0

answer
7

Views

error: no match for ‘operator*’ (operand type is ‘const llvm::DataLayout’)

I use the llvm tools to build a simple compiler, but the statement passManager.add(new llvm::DataLayout(*engine->getDataLayout())); not work well. I test it in ubuntu16.04 and my gcc version is 5.4.0 Could someone tell me how to fix it? thank you very much! // // Created by tuhaoxin on 2019-04-14. /...
tthx
1

votes
1

answer
1k

Views

No JIT Debugger has been specified when launching application

Hey, I have a vb.net application that I compiled and all, I took the EXe and all and placed it on another pc that has only visual studio express on it. When I open my .exe I get a message saying No debugger has been found, no Jit Debugger has been specified I can either select retry to find a debug...
GIBIT
1

votes
1

answer
198

Views

is it possible to reclaim memory resources from a llvmContext?

since llvm 2.7, it is possible to isolate Types and anything that LLVM might need to create a JIT module inside a llvmContext however, i am not entirely clear how to reclaim memory resources internally allocated in a llvmContext once it has been used. I think there should be one since the point of u...
lurscher
1

votes
1

answer
71

Views

Difference between JIT machine specific operations and static binary

One of the 'wins' listed by proponents of JIT is that it can generate machine-specific assembly instructions, based on the CPU of the machine on which the code is running. How is this different than statically compiling a file? If a statically compiled file is going to run on a given machine, it mus...
Kevin Burke
1

votes
1

answer
201

Views

How much instruction-level optimisation can a JIT apply?

To what extent can a JIT replace platform independent code with processor-specific machine instructions? For example, the x86 instruction set includes the BSWAP instruction to reverse a 32-bit integer's byte order. In Java the Integer.reverseBytes() method is implemented using multiple bitwise masks...
Gnat
1

votes
1

answer
397

Views

Is there any real advantage from Bytecode JIT execution over native code beside portability? (General and OS-Design)

Is there any real advantage from Bytecode JIT execution over native code beside possible implementation of platform independency? Apparently languages that use 'virtual machines' over Bytecode JIT execution are attributed several advantages. But in what extend would this really affect a discussion c...
1

votes
1

answer
1.7k

Views

Changing orientation of subtrees for JavaScript InfoVis Toolkit's Spacetree

I'm using JIT's (JavaScript InfoVis Toolkit) Spacetree. Example: http://thejit.org/static/v20/Jit/Examples/Spacetree/example1.html It's trivial to change the orientation of the whole entire tree to top, right, bottom or left: st.switchPosition('left', 'animate', fnComplete); .. but I'd like to do th...
Shane
1

votes
1

answer
278

Views

Just-in-time debugger with ViewFinity/no admin rights

My company uses ViewFinity to elevate processes that need admin rights in lieu of any kind of actual admin privileges. Visual studio is already elevated, but for some reason the JIT debugger doesn't run as admin. It is a separate .exe that kicks off when an exception occurs? How would I go about fix...
1

votes
1

answer
4.5k

Views

Java: How to enable JIT?

I have a problem running a Java application through Eclipse. Upon clicking Run, a prompt shows: 'Assertion failed! Program:../truetype.c Line: 2133 Expression: glyph != NULL (Please Retry to debug the application - JIT must be enabled)' * Upon clicking Retry, a prompt shows 'javaw.exe has stopped w...
exception01
1

votes
1

answer
606

Views

Link (via url) to specific node in infovis (jit) treemap

Any infovis toolkit users out there? Would surely appreciate your help. I'm wondering if there's a way to link to a specific node via a standard href or some other method. Specifically, I'd like to retain the current node that the user is viewing while switching to a different view (link to a differ...
Ben Wilson
1

votes
1

answer
295

Views

llvm jit compile to binary

Is it possible somehow to write a compiler producing LLVM IR code which user will JIT compile and after compiling it in memory it would be written to disk as binary file? The idea behind this scenario is that I dont want to compile LLVM IR code and let users to execute it immediately (with lower per...
Wojciech Danilo
1

votes
2

answer
524

Views

Are there any IoC frameworks that do not use JIT compilation that support interception? [closed]

It seems that Mono on iOS does not support JIT compilation, which seems to be used by at least StructureMap, Ninject, and Simple Injector. It can be turned off with reflection replacing it in Ninject but that doesn't seem to be the case with its extensions, at least the interception one anyway. Are...
fordeka
1

votes
1

answer
1.8k

Views

Android Instrumentation Test concerns: debug vs. release mode

To automate tests, we are considering the Android instrumentation tests. However, we are concerning the performance may differ significantly if the unit tests are put in the debug mode. After doing some search, there seems no definitive answers. Thus, we need some clarifications about the following...
Farley
1

votes
1

answer
270

Views

Same method has different entry address in native code?

I've written the following C# in .NET 4.5: public struct DisposableStruct : IDisposable { private readonly int _i, _j; public DisposableStruct(int i, int j) { _i = i; _j = j; } [MethodImpl(MethodImplOptions.NoInlining)] void IDisposable.Dispose() { Console.WriteLine(_i + _j); } } internal class Prog...
Jeffrey Zhao
1

votes
1

answer
46

Views

Is the JVM ever re-compiling compiled code?

Is the JVM (any of them) ever re-compiling code that has already been compiled at runtime?
Ion Ionascu
1

votes
1

answer
768

Views

If a program is crashing and Windows error screen comes up but not the JIT dialog how do I get it to bring up the JIT window instead?

I am writing a DLL using Visual C++ 2008, which is then loaded and runs inside another application (an exe written in Visual C++ that I do not have source code for). I nevertheless must debug my plugin's crashes that are occurring sometimes. I have enabled JIT debugging in the Visual C++ 2008 deb...
Warren P

View additional questions