Comments (7)
Just realized that a much simpler test case would be a Ref (Ref a)
, which should exhibit the same problem.
from feldspar-language.
Maybe the second solution is not so bad after all. We already have arrays which are in some sense generalizations of references.
from feldspar-language.
For the sake of argument, what would be the difference between the new sub-class and Type
? What intuition should I use to know which one of them to use in a particular piece of code?
from feldspar-language.
This is a bug that should be fixed in the code generator somewhere; I assume it relates to Program
somehow.
How urgent/important is this for you? I don't think it's a minor local fix.
from feldspar-language.
For the sake of argument, what would be the difference between the new sub-class and
Type
? What intuition should I use to know which one of them to use in a particular piece of code?
I'm not sure actually. The simplest thing would be to just exclude Ref
from Type
. But I don't know if that maybe rules out too much (I don't remeber exactly what Type
is used for), so I thought a sub-class might be needed.
But it would of course be nice if this could be fixed in the back end. Arrays of references can be useful.
from feldspar-language.
How urgent/important is this for you? I don't think it's a minor local fix.
Not urgent at all. I just started to think about this for a different reason.
from feldspar-language.
I will move this issue to feldspar-compiler.
from feldspar-language.
Related Issues (20)
- Implement virtual tuples
- Overwrapping (orphan) instances HOT 2
- Code motion makes expressions travel in tame HOT 2
- Cyclic imports when trying to optimize index calculations HOT 1
- Bug in rangeRem
- enumFromTo in MultiDim is faulty HOT 1
- Internal representation of MultiDim vectors is too general HOT 10
- Update tutorial HOT 1
- `store` doesn't HOT 3
- How to generate system calls? HOT 8
- System monad HOT 11
- foreignCall and then-statements HOT 2
- Monotonic/Crease-handling HOT 2
- printExprUnOpt hangs on parallel 10 (*2) HOT 5
- `interleave` and `zipUnpair` have identical implementations HOT 2
- Reliable code motion HOT 10
- Control descending in code motion
- Why does Data.Mutable.Buffer lead to worse code? HOT 1
- `switch` with non-constant cases HOT 1
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 feldspar-language.