Comments (2)
I think an additional property removeOn
which specifies the exceptions could do the trick.
The thing I am worried about is that if this feature is not used with care rewrite loops can easily occur, so one of the Truffle properties fitness might be violated easily with this feature. For previous features in the DSL I wanted to keep the source of these kind of errors as small as possible, that's why DSL nodes add to the range of supported input values with each specialization but do not subtract. The Specialization#assumptions feature is the only exception of that rule atm.
@mbrantner Can you provide a complete example which highlights the use-case? So I can verify that I understood the requirement completely and that there is no other option except adding this feature. Thanks.
from graal.
This was discussed offline. There exist other ways (e.g. using assumptions or profiles) to achieve the desired behavior.
from graal.
Related Issues (20)
- [GR-52560] Size regression from GraalVM CE 23.0 to GraalVM for JDK 21 (CE) for `byte[] for code metadata` HOT 2
- JSON Metadata Versioning, Backwards Compatibility, and Evolution
- [GR-52553] Defining new classes at runtime is not supported HOT 2
- [GR-52591] Warning: Error processing trace entry map(size=5, {(tracer,reflect),(function,getSystemResource),(caller_class,org.apache.logging.log4j.core.util.Loader),(result,true),(args,[null])}): java.lang.NullPointerException HOT 3
- Caused by: java.lang.IllegalArgumentException: Method "list" could not be invoked HOT 14
- [GR-52611] Add the ability to add comments to JSON configuration file entries HOT 6
- --module-path directory: Modules Not Added HOT 5
- [GR-52818] javax.xml.transform.TransformerFactory.newTemplates(Source) NullPointerException in Native Image HOT 15
- Error: java.util.concurrent.ExecutionException: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: type is not available in this platform: com.oracle.svm.hosted.NativeImageSystemClassLoader HOT 1
- Instructions for building native-image-agent HOT 2
- [GR-52698] Cannot run SSL debug logs with GraalVM native image HOT 4
- the size of graal compiled program HOT 1
- Could not initialize class org.graalvm.polyglot.Engine$ImplHolder HOT 2
- [GR-52826] Non-ASCII characters in command line arguments are replaced by U+FFFD in Windows (native-image) HOT 7
- GraalVM uses getObjectVolatile and compareAndSetObject from unsafe which are removed in JDK 23 HOT 3
- MacOS native-image: No awt in java.library.path HOT 1
- ClassLoader.classes field substitution error HOT 1
- GraalVM for JDK 22 Community: ForeignFunctionsRuntime$UnregisteredForeignStubException: [FFM] Cannot perform downcall with leaf type (long,long,long,long,long)void as it was not registered at compilation time. HOT 4
- Random deadlocks when creating new context HOT 3
- [GR-52872] Confusing error when attempting to call a method annotated with HostAccess.Export on a class with private visibility
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.