Replies: 2 comments
-
|
I think this is happening because almost every coding AI today has been trained mostly on JavaScript-based web projects. So the moment it sees words like:
it automatically assumes:
Even if you clearly want to build everything using Goscript itself. So honestly, I don’t think the real problem is GLM-5 specifically — it’s the overall training bias of modern coding models. A few things that might help a lot while building Goscript further: 1. Give Goscript its own strong identityInstead of presenting it as a “JavaScript alternative”, try defining it as:
The more independent it feels, the less the model tries to fallback to JS frameworks. 2. Add very strict generation rulesSomething like this helps a lot: NEVER use:
- JavaScript
- React
- Vue
- TypeScript
- JSX
- npm packages
ONLY use:
- Goscript syntax
- Goscript-native APIs
- Goscript renderer/runtime3. Create More Goscript ExamplesRight now the internet is flooded with JavaScript examples, but the model probably has very few Goscript references to learn from. If you create examples for:
then the AI starts understanding the “Goscript way” of building applications instead of defaulting to React patterns. 4. Maybe Target WASM Long-TermInstead of: Goscript → JavaScript → Browsera future direction could be: Goscript → WASM → BrowserThat would make Goscript feel much more independent from the JavaScript ecosystem and help establish it as its own web platform. 5. Even Repo Structure MattersLLMs also learn from:
So even small things can influence generation behavior. For example, instead of: src/components/App.jsxusing something like: src/ui/app.gs
src/runtime/dom.gs
src/core/reactivity.gscan help the model think in a Goscript-native way instead of automatically assuming a React/JavaScript ecosystem. |
Beta Was this translation helpful? Give feedback.
-
|
@Gaurang98 Thanks a lot, you helped me to rethink gomazing/goscript in a proper way (as it should be) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
z.ai is so powerful using im building a massive programming language itself for the future web.
gomazing/goscript
But when im trying to create a demo capability website for goscript using goscript itself
z.ai is forcing/defaulting itself to use Javascript frameworks.
Can you help me to build this goscript language further restricting javascript altogether?
Beta Was this translation helpful? Give feedback.
All reactions