Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
c-smile
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
c-smile
3y ago
C++ version of the approach: https://www.codeproject.com/Tips/29524/Generators-in-C I am using this in my Sciter, just in case. Works quite well and convenient.
62.
▲
by
c-smile
3y ago
If I am not mistaken, NanoVG actually can render as by CPU (need external path rasterizer) as by GPU (OpenGL and other options). NanoVG provided Canvas.Context kind of API in plain C.
63.
▲
by
c-smile
3y ago
About premake5 in general. premake5 is a monolithic/portable executable that contains Lua + specific runtime. Thus it does not rely on installed Python as in GN case as other tools. Having standard and well known and documented Lua on
64.
▲
by
c-smile
3y ago
> it's a pain to build Yes. So in Sciter I've replaced its build system with relatively simple premake5 script. That replacement took couple of days but was worth it. Premake5 generates human-readable IDE solutions and make fil
65.
▲
by
c-smile
3y ago
Original EverNote (v 2.0, first public version) was built on that idea - endless tape of notes : https://notes.sciter.com/wp-content/uploads/2017/09/evernote... Plain text is OK, or Markdown as poor man
66.
▲
by
c-smile
3y ago
What if to keep it standing for the whole day?
67.
▲
by
c-smile
3y ago
You can try my Sciter. On Windows it uses as Direct2D/DX11 as Skia over DX12|Vulkan|OpenGL (whatever is available). In both cases it uses GPU rendering and I see no problems with scrolling in them - 60 FPS kinetic scrolling by mouse wh
68.
▲
by
c-smile
3y ago
> In practice, it still re-renders a lot. Neither framework will fix programmer's errors. This for(let child of container) child.innerHTML = getHtmlFor(i++); will always be slower than this: for(let i = 0; i <
69.
▲
by
c-smile
3y ago
How does M3 stand with SvelteJS? Seems like these are two conceptually similar things. > React traverses the virtual DOM tree to update the UI, resulting in O(n) time complexity. That's the worst case, on initial load. On most of UI
70.
▲
by
c-smile
3y ago
I have a customer, a company, they specialized on porting my Sciter on old and exotic platforms to create new modern looking software for them. Win95, old Unixes still getting new soft developed for them. Another company, behemoth, I would
71.
▲
by
c-smile
3y ago
I do not really understand what is the problem with flexible <select> implementation in browser. In my Sciter[1] the following are supported ( see screenshot [2] ): <select type="dropdown"> - select with popup
72.
▲
by
c-smile
3y ago
Each tool is good for particular tasks it was designed for. That's why my Sciter [1] supports both - as retained mode (DOM/CSS) as immediate mode (element.paintXXX()). Consider the task of marking some div as resizable - with eigh
73.
▲
by
c-smile
3y ago
Runtime model is not clear. Like my Sciter is an embeddable multiplatform HTML/CSS/JS UI engine. You create your native app using PL of your choice and create HTML/CSS/JS window[s] using Sciter API calls. So it is HTML&#
74.
▲
by
c-smile
3y ago
Early version of Sciter was HTMLayout engine where I put my email in dll resources. That was terrible idea. I did not realize how creative users are to get that email from resources. HTMLayout was especially popular among shareware INDIE au
75.
▲
by
c-smile
3y ago
So we are about to cool down Earth's core? Climate changing v.2.0 due to Earth loosing its magnetic field ...
76.
▲
by
c-smile
3y ago
JSX is useful not just for advanced string interpolation but for representing/generation of tree alike structures / literals in PL. JSX is not only about HTML but XML too. I don't know how JSX is made in LuaX but in my QuickJ
77.
▲
by
c-smile
3y ago
Agree about virtualization in principle. Not that nightmarish though. My Sciter supports built-in virtualization out of the box. But I shall admit that this is second approach to the problem. Currently Sciter's behavior:virtual-list su
78.
▲
by
c-smile
3y ago
Just in case, Sciter has built-in element <terminal> that can be used for various purposes. Escape codes are supported, see: https://sciter.com/wp-content/uploads/2022/10/terminal.png Docs/API
79.
▲
by
c-smile
3y ago
> warehouse deliveries Main problem here is that it is a floating device. As soon as it unloads 4 tons of cargo it gets pushed up with 4 tons force upwards. And you'd better do not release helium to compensate that - it is quite exp
80.
▲
by
c-smile
3y ago
> that most of hte libraries taking a JSON document approach are wasting a lot of time/memory I agree. That's the same situation as with XML/HTML. In many cases you don't really need to build a DOM or JSOM in memory.
81.
▲
by
c-smile
3y ago
With each release of Windows there are less and less HWND/GDI based applications. Standard set of HWND/GDI controls (EDIT,COMBOBOX, BUTTON + so called common controls) is not changing since Win95 so it is a dead end. And in genera
82.
▲
by
c-smile
3y ago
Why each article about project completion in Rust is read as ex-husband words about his ex-wife: - I loved here. I am still is. But we needed a divorce.
83.
▲
by
c-smile
3y ago
N1 (USSR Lunar mission) rocket had similar engine group design - 30 similar engines (NK-15). I remember one professor in our university who did post-mortem analysis of the program failure. He compared that setup with 3-body problem ( https:
84.
▲
by
c-smile
3y ago
Floating takes zero energy.
85.
▲
by
c-smile
3y ago
Why pure helium but not a mixture of helium-hydrogen? At some level [1] that mix is not flammable. That will add at least some additional payload. [1] https://h2tools.org/bibliography/experimental-study-safety-h...
86.
▲
by
c-smile
3y ago
Keep GIL but introduce Workers a la JS [0] ? Worker [thread] is a sandboxed VM [context] with its own GIL. Communication between these is done through messaging so no sync primitives are required. Go's routines have similar concept. I
87.
▲
by
c-smile
3y ago
Just in case, in my Sciter horizontal margins do collapse in horizontal flows: container { flow: horizontal; /* single row */ } container > child { margin:1em; /* will collapse */ } See: h
88.
▲
by
c-smile
3y ago
Hmmm... if America I would expect to see plates from, say, Bolivia too ...
89.
▲
by
c-smile
3y ago
> "Every tool expands until turning complete" In that respect I think PreMake (Lua based configuration and build system) is more humanistic. Lua syntax provides pretty comfortable, DSL alike, way of defining rules/declarat
90.
▲
by
c-smile
3y ago
You can extend Sciter by native components. As purely functional (native classes and methods in JS) as visual (custom UI components).
More ›