Comments (6)
Hi joscha,
yeah, I also experienced lately those crashes. I wasnt getting any before.
I'm not sure exactly where the problem lies, however I'm going with another better approach: we keep everything on jvm until we have to interface the vulkan api natively. At that point we push all the jvm resources to the native memory-stack,
You can see it in action here.
I got the idea from playing with Swift, they implement a very similar concept with c strings: you are given a valid pointer to the underlaying char array which is assured to be valid for the whole closure/lambda.
Everything is on Swift side until you have to interface c.
I'm using that same project as lab, but once finished I'll port all the work back to vk², hopefully in a few days
If you have any feedback, I'm here
ps: I'm also testing type safety for a couple of flag masks, let's see how that plays out
from vkk.
but once finished I'll port all the work back to vk²
Sounds good, looking forward to it 👍
I might push some PRs your way afterwards if it's fine. I've noticed some of the "convenience" functions missing where you don't have to deal with buffers yourself. But I'll wait until you've done that refactoring, it would probably be double the work otherwise :)
from vkk.
Pushed, tmp branch
relevant:
- everything on jvm side till the native api call
- added some extensions functions on the
MemoryStack
to malloc/calloc primitives (default to size 1) and various buffers and plain pointers (also with nice build dsl, eg:stack.IntAdr(size) { init(it) }
orstack.IntBuffer(size) { init(it) }
- kool introduces now inline class primitive pointers, you can see them here for example. They implements accordingly
get/set
operators with the right offset based on the type of the pointer
I'm eager to gather feedbacks, I'll send you an invite for the PRs
from vkk.
vk10 is complete (always tmp
branch)
from vkk.
Hi @elect86 , sorry didn't have a chance to take a look yet. Will hopefully get to it on the weekend!
from vkk.
Hi @joscha-alisch, news?
from vkk.
Related Issues (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 vkk.