Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
c-smile
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
64 ms
·
661.
▲
by
c-smile
7y ago
That is a content editor. Styles are meant to be defined at the site where the content appears. I deliberately remove all inline styles while pasting and loading: https://github.com/c-smile/sciter-sdk/blob/mas
662.
▲
by
c-smile
7y ago
Thanks. The app is still buggy in dusted corners though. Cleaning them time to time.
663.
▲
by
c-smile
7y ago
Not too much interest from the public expressed, unfortunately. Existing customers are happy with built-in script and compactness of the engine as it is. Instead I am making efforts to add ES7 features to the Sciter's script. So there
664.
▲
by
c-smile
7y ago
Being an author of my own HTML/CSS engine I know HTML/CSS very well as anyone can imagine. BUT! I don't like to write formatted texts in HTML sources - too hard to consume it while writing. Markdown (a.k.a. poor man WYSIWYG)
665.
▲
by
c-smile
7y ago
"They seem to target similar things?" No - different. Electron was designed to run web sites pretty much as they are. It is a standalone browser combined with server (Node.Js) under common umbrella. So it the same client-browser t
666.
▲
by
c-smile
7y ago
I am working on Sciter ( https://sciter.com ) that appeared in Norton Antivirus in 2007, so it is used in production 12 years already. And I never did full rewrite. The development started as "C with classes" when std:
667.
▲
by
c-smile
7y ago
http://html-notepad.com - distribution 2,5 Mb (compressed) http://notes.sciter.com - 2.5 Mb and on all platforms. And these applications are not using "numerous DLLs" - just two files: app.exe and sciter
668.
▲
by
c-smile
7y ago
memory complexity in JS translates into time complexity needed for GC cycles.
669.
▲
by
c-smile
7y ago
"new object is created in each iteration" Not just created, but properties are being populated one by one. "can be garbage collected" And what do you think is computational complexity of garbage collector? Yes, memory al
670.
▲
by
c-smile
7y ago
This sample function keyByUsernameReducer(acc, person) { return {...acc, [person.username]: person}; } const peopleObj = peopleArr.reduce(keyByUsernameReducer, {}); has O(n*n) complexity and memory consumption of th
671.
▲
by
c-smile
7y ago
You can do inside whatever you want but you shall provide an API similar to these two functions: HWND GetParent(HWND child) and EnumChildWindows(HWND parent, callback). Once again: IAccessibility mandates tree organization of your UI. You c
672.
▲
by
c-smile
7y ago
> every GUI has that same structure, which isn't necessarily true I'd insist on EVERY here. Container holds list of children. Child holds reference to parent - typical tree implementation. If you have in mind something else - p
673.
▲
by
c-smile
7y ago
Windows: Direct2D/DirectX, optionally Skia. Native windowing. MacOS: Skia/OpenGL, optionally CoreGraphics. Native windowing. Linux: Cairo, optionally Skia. GTK window primitives.
674.
▲
by
c-smile
7y ago
"The GUI for an antivirus product could be built with just about any framework" Not "any" as Section 508 is mandatory for example. That really limits your options to Qt and Sciter from that list (if to consider style of
675.
▲
by
c-smile
7y ago
Ah, missed that one, thanks. Format looks like .frm files of VB6. And that's somehow closer to C++ (than Delphi) as widgets there are COM objects.
676.
▲
by
c-smile
7y ago
"a hammer" you mean Electron and it's full scale browser, right? "I wouldn't get stuck on thinking there is no other way" There is a way, named "Dear ImGUI", that does not use DOM structure but rather
677.
▲
by
c-smile
7y ago
> a text language with lots of different overlapping rules and syntax. Could you elaborate more on this? What are those overlapping rules? > unnecessary complexity just to get a layout heirarchy and dependencies. I have no idea why yo
678.
▲
by
c-smile
7y ago
There is on problem with Lazarus approach. IDE and visual form layout editors require specialized property editors. And amount of code for design time support is significant usually. Yet, data produced by layout editors is not DIFF friendly
679.
▲
by
c-smile
7y ago
I like JUCE architecture as probably more than other library. I actually even considered JUCE as a backend for my Sciter: https://sciter.com/sciter-on-mac-with-juce-backend/ But the problem is that JUCE uses pure softw
680.
▲
by
c-smile
7y ago
Sciter's author here... "Markup languages for a GUI where isn't needed..." You've missed big picture. Markup language defines DOM structure (tree of UI objects). And you must have DOM in your application, either as
681.
▲
by
c-smile
7y ago
> the big companies that have great UIs aren't sharing them with anyone. Here are some "big companies" https://sciter.com/#customers and the library they use for their UIs.
682.
▲
by
c-smile
7y ago
> GCs should be an opt-in niche tool used to solve specific problems. That is true. Sciter ( https://sciter.com ) contains implementation of DOM(tree), CSS and script. DOM is a regular tree structure - each element of the tree
683.
▲
by
c-smile
8y ago
> This is difficult with traditional GUIs like QT. That's not actually that hard to do. You just need to split the UI on layers. Here is for example HTML/CSS is rendered below and on top of 3D scene: https://sciter.c
684.
▲
by
c-smile
8y ago
The article is focused on essentially old idea of framebuffers: > Even more ideally these memory chunks would just be textures in the GPU. And that idea is very far from modern world of high-DPI monitors. In high-DPI UI you cannot operat
685.
▲
by
c-smile
8y ago
> For rich GUI that works well on every platform you need different structure, not just different styles. Why do you need such "modern C++ GUI library" then? Check my Sciter Notes. Screenshots of the application for each platfo
686.
▲
by
c-smile
8y ago
> don't actually have that Not clear what exactly. > with just minimal styling and/or multiple versions. If an application has simple UI that can use predefined and quite limited set of system UI elements then you probably d
687.
▲
by
c-smile
8y ago
"Is it really better to split on semantic/structure and styling?" When you need to show the same UI on different devices (desktop, mobile, OSes) and media (screen, high-dpi-screen, printer) you will come up to the need of sep
688.
▲
by
c-smile
8y ago
This: "Hello, <bold blue size=16>Nana C++ Library</>" looks a bit strange. Looks like XML but it is definitely not (the </> construct for example). If the purpose is to provide inline styling then I wou
689.
▲
by
c-smile
8y ago
Well, CPU rasterization is always O(N) complex (where N is number of pixels on screen). Multithreading here just adds constant multiplier that according to the math will still lead to O(N). While GPU rasterization, from application perspect
690.
▲
by
c-smile
8y ago
Just in case: Skia can be built without Google build environment. For the Sciter ( https://sciter.com ) I just included all needed files into projects ( MSVC and XCode ). That setup takes some initial time but after that it works
More ›