🧠️ Ideation: Loaders #152

Open
opened 2023-07-22 20:14:40 +01:00 by deavmi · 1 comment
Owner

What is this?

Need to come up with a way to reason about x.y.z and x.y.z = <expr> for both code generation and emitting thereof.

## What is this? Need to come up with a way to reason about `x.y.z` and `x.y.z = <expr>` for both code generation and emitting thereof.
deavmi added the
typing
dependency
emit
question
labels 2023-07-22 20:15:01 +01:00
deavmi added this to the Basics milestone 2023-07-22 20:15:06 +01:00
deavmi self-assigned this 2023-07-22 20:15:10 +01:00
deavmi added the due date 2023-07-31 2023-07-22 20:15:15 +01:00
deavmi added reference feature/structs 2023-07-22 20:17:42 +01:00
deavmi added a new dependency 2023-08-16 08:58:32 +01:00
deavmi started working 2023-08-16 08:58:39 +01:00
Author
Owner

Solution

So I have now come to this. Look I don't think we should be splitting up paths like we do. The visitor pattern for reaching segments generates just stupid things the emitter gets then.

The emitter itself realistically is what should be handling this. As we have seen already with the symbol mapping process used in the C-emitter, DGen, which has to do emitter language-specific things in order to make it work.

This is of course possible at the emitter level. If we need the idea of a loader then we would have required to split it there anyways in the emitter and could so so easily with string manipulation and lookups (AS DONE WITH SYMBOL MAPPING).


Therefore I suggest we simplify the code within the dependency generator for VariableExpression processing.

## Solution ✅ So I have now come to this. Look I don't think we should be splitting up paths like we do. The visitor pattern for reaching segments generates just stupid things the emitter gets then. The emitter itself realistically is what should be handling this. As we have seen already with the symbol mapping process used in the C-emitter, `DGen`, which has to do emitter language-specific things in order to make it work. This is of course possible at the emitter level. If we need the idea of a loader then we would have required to split it there anyways in the emitter and could so so easily with string manipulation and lookups (**AS DONE WITH SYMBOL MAPPING**). --- Therefore I suggest we simplify the code within the dependency generator for `VariableExpression` processing.
deavmi modified the due date from 2023-07-31 to 2023-08-18 2023-08-16 09:01:28 +01:00
deavmi stopped working 2023-08-16 09:13:44 +01:00
15 minutes 5 seconds
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 15 minutes 5 seconds
deavmi
15 minutes 5 seconds
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2023-08-18

Reference: tlang/tlang#152
No description provided.