Comments (5)
Apologies @efoerster. It just dawned on me that 0.1.1
probably failed to fix the problem. I misunderstood the logic required of duk_config.h
. I have limited testing capabilities with Windows... but it should be fixed now (302d7a4) with 0.1.2
.
from ducc.
Seems to be fixed, thanks for your fast response.
from ducc.
Hm, I see... So DUK_USE_DATE_NOW_WINDOWS_SUBMS
is being defined during compilation on Windows 8/10 but then GetSystemTimePreciseAsFileTime
fails to resolve at runtime under Windows 7. That's an unfortunate consequence. If I were on the Duktape team I would have done it the other way around. (So that the user would specify a flag to activate this poorly supported sub-millisecond accuracy.)
I'm tempted to just #define DUK_USE_DATE_NOW_WINDOWS
. If I'm understanding things correctly, this would sacrifice sub-millisecond timer accuracy on Windows 8/10, but at least it would fix this issue. I highly doubt this would affect any current ducc users... Besides, supporting such granular feature flags seems against the nature of ducc, which intentionally hides such implementation details.
Is this OK with you?
(Alternatively it looks like you can supply your own time functions that could perhaps dynamically fallback to GetSystemTime
if GetSystemTimePreciseAsFileTime
is missing. I'm guessing this is overkill for your purposes.)
from ducc.
Sure, thats even better. Thank you!
from ducc.
Alright give ducc 0.1.1
a shot. Close this issue if that fixes the user's issue or let me know if further work is needed :)
from ducc.
Related Issues (11)
- Undefined symbols for architecture x86_64: "DUK_VARARGS" HOT 6
- Support multiple Duktape contexts with a shared heap HOT 4
- Add support for arm HOT 2
- Warnings When Compiling on Stable
- Unhandled fatal error causes stack overflow HOT 1
- Store Ducc values inside userdata HOT 4
- Implement accessors (duk_def_prop) HOT 3
- Idea: object (and function?) handle
- Support for modules? HOT 2
- Can we mutate userdata entry inside a JS invoked function? HOT 4
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 ducc.