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)
- Native Shared Library Unable To List Names of Annotated Class HOT 11
- [GR-54159] Fontconfig head is null, check your fonts or fonts configuration HOT 5
- Runtime reflection is not supported for public javax.ws.rs.core.Response$StatusType org.jboss.resteasy.specimpl.AbstractBuiltResponse.getStatusInfo() HOT 3
- Runtime reflection is not supported for public javax.ws.rs.core.Response$StatusType org.jboss.resteasy.specimpl.AbstractBuiltResponse.getStatusInfo() HOT 3
- Statically Linked native image does not produce/embed all the needed .so next to the executable HOT 2
- Add support for JCMD and the Attach API HOT 6
- How to configure Gradle to initialize specific modules at runtime when generating a native image with GraalVM? HOT 2
- [GR-54108] Polyglot memory leak on simple python execution HOT 1
- [GR-54965] objectInputStream.readObject() issue with springboot 3.3.0 + graalvm22 as native image HOT 15
- Call for Lead Maintainers – GraalVM Backports Repositories HOT 14
- Future proposal: have "javac" directly support graalvm + (static) native image creation HOT 2
- Using native-image and Android apk files. HOT 3
- [GR-54193] Improve docs on JSON config files HOT 1
- What would be your recommendation to native compile a simple Java library and then call this native compiled library from another Java program? HOT 19
- native-image build error in graal-22.0.1
- jdk.VirtualThreadPinned JFR event NOT supported in native-image HOT 2
- jdk.graal.compiler.debug.GraalError: should not reach here: kind=V256_QWORD input=xmm6|V256_QWORD result=xmm0|V256_QWORD HOT 1
- epsilon and G1 seem not to work with JFR in NI HOT 2
- JFR CPU profiler does not respect the configured sampling period HOT 3
- Error encountered while parsing com.sun.glass.ui.mac.MacVariant.toString (MacVariant.java:193) HOT 2
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.