Comments (7)
Agreed. This is an artifact from a time where types in the type system where mandatory. Feel free to push the change (should not require a change in the processor). Otherwise I can push it with my next Truffle changeset.
from graal.
Just wondering, what is the concrete use of @TypeSystem
without a list of times?
From the javadoc, I would assume it helps the DSL to keep specializations of different node hierarchies separated.
from graal.
@ImplicitCast
?
from graal.
You mean the @TypeSystem
is useful to define @TypeCast
, and @TypeCheck
methods? Ok, forgot about that.
But, what was @ImplicitCast
again? It happens to be neither referenced from the TypeSystem
JavaDoc nor documented :)
from graal.
JRuby uses @ImplicitCast
to promote integer and floating-point types where we don't want specialisation for individual types. I think I've been told it's not ideal for some reason but haven't resolved it yet https://github.com/jruby/jruby/blob/34b32e9c786b916471c1077755340129b1d90d56/truffle/src/main/java/org/jruby/truffle/language/RubyTypes.java.
If something needs more documentation that's a separate issue to adding this default value.
from graal.
The only use-case for having the types specified in @TypeSystem
is to have the generated is* and as* methods in the generated type system code. For types in @ImplicitCast
, @TypeCast
and @TypeCheck
to work they don't need to be specified in the type system anymore.
I was tempted in the past to deprecate the typesystem types all together because the benefit is rather small. Objections?
Yes documentation also needs to be updated. Will do as part of this issue.
from graal.
I don't mind it being deprecated as I'm not using it.
from graal.
Related Issues (20)
- orai18n dependency causes native image build to fail with GraalVM for JDK 21 HOT 13
- Error creating bean with name 'resourceHandlerMapping': Instantiation of supplied bean failed HOT 3
- java.lang.ExceptionInInitializerError when trying to create native image for program using XML processing HOT 3
- ExceptionInInitializerError InvalidPathException on Windows, Apache Tomcat HOT 1
- [GR-51419] Native Image crashes on Windows with jni native function HOT 2
- List available resources HOT 3
- fonts not appearing in native compiled version HOT 4
- Native Image - Detected a ZipFile object in the image heap. HOT 7
- GraalVM JDK behaves differently when run -agentlib:native-image-agent and -agentpath:$GRAALVM_HOME/lib/libnative-image-agent.so HOT 2
- Native image fails to load a DLL from a path that contains non-ASCII characters HOT 1
- Return value of "java.util.jar.JarFile.getEntry(String)" is null HOT 2
- UnsupportedClassVersionError: Preview features seem to not be enabled in fallback despite passing --enable-preview to native-image HOT 7
- [GR-45919] Generational ZGC Support for Graal JIT HOT 1
- Error creating bean with name 'openEntityManagerInViewInterceptorConfigurer', 'jwtAuthenticationFilter', 'handlerExceptionResolver', ...
- Error creating bean with name 'openEntityManagerInViewInterceptorConfigurer', 'jwtAuthenticationFilter', 'handlerExceptionResolver', ... HOT 1
- [GR-51159] Write documentation that covers common Java code patterns and what machine code they compile to
- fatal error C1034: stdio.h HOT 2
- [GR-48395] -Xlog:gc:/var/log/java_gc.log is not work HOT 2
- [GR-18218] Full support for the Foreign Function & Memory API in Native Image
- ImageSingletons do not contain key org.graalvm.nativeimage.impl.RuntimeForeignAccessSupport HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graal.