Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
c-smile
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
97 ms
·
1081.
▲
by
c-smile
10y ago
I am not sure I understand how REPL ( https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93prin... ) is related to client/server. As of collaboration ... it could be clients/single-server or fleet of apps sy
1082.
▲
by
c-smile
10y ago
So it is always to be a client/server thing, right? Cloudy? Is this a strict requirement? Like users to work cooperatively on the same document (a.k.a. Google Wave, sic transit gloria mundi).
1083.
▲
by
c-smile
10y ago
Check this: http://sergimansilla.com/blog/virtual-scrolling it is an example of virtual list showing 1,000,000 records with native browser's scrollbars. So "yes" it is doable in principle but with JS he
1084.
▲
by
c-smile
10y ago
Educated guess: generator functions with chunked processing on setInterval callbacks would be less CPU consuming for such tasks.
1085.
▲
by
c-smile
10y ago
The editor is essentially a virtual list - sliding buffer of DOM elements - only visible lines are represented in the DOM. That's probably the only reasonable way of doing such editors effectively in modern browsers. Drawback of this a
1086.
▲
by
c-smile
10y ago
Some browsers can use Open Source libraries, some simply cannot , for whatever reasons. Yet formally we need at least two independent implementations of the same thing in order the spec to get Recommendation status. So each UA (a.k.a. bro
1087.
▲
by
c-smile
10y ago
I participated in HTML5 specification work group at W3C as Invited Expert. We had such a proposal to add SQL storage to HTML5. But it was pretty much unanimous opinion that adding specification of any SQL flavor to the HTML spec would be
1088.
▲
by
c-smile
10y ago
Yes, but in some cases it could be faster to work in sole- writer mode. It is kind of cooperative multitasking demonstrating by Node.js.
1089.
▲
by
c-smile
10y ago
Or just re move one [DB] layer completely. Such databases can be stored directly on machines executing http requests. And if you need to rebuild DB structure you don't need to stop the world - do them one by one. Of course, all this d
1090.
▲
by
c-smile
10y ago
Consider multi-user wordpress site for example. You can have one SQLite DB per user - there is simply no information to share between users. If so you can split all your users between multiple backend machines and do per user request routin
1091.
▲
by
c-smile
10y ago
If to speak about desktop applications then any embedded DB will be unbeatable. So I am speaking about embeddable DBs here. Konstantin Knizhnik have implemented impressive set of various embedded DBs: http://garret.ru/databa
1092.
▲
by
c-smile
10y ago
"multiplayer tetris" is the game played by UN Security Council, so why not?
1093.
▲
by
c-smile
10y ago
"Regarding Electron, I am writing an application on it, but it is too god damn heavy in terms of memory, disk space and boot time," Try Sciter HTML/CSS engine then ( http://sciter.com ). It is a monolitic DLL (4-8 M
1094.
▲
by
c-smile
10y ago
There are two main problems with such solution (and any other existing JS based code colorizers): 1. Use of regular expressions. Hard to get effective solution with that. Yet that famous parsing HTML by regex answer: http://stack
1095.
▲
by
c-smile
10y ago
"So if there's no rules mentioning an [a] attribute in the page, el.setAttribute("a", ...) will generally not do anything." That's true in general but there are exceptions as usual. Changing @href may trigger n
1096.
▲
by
c-smile
10y ago
"Not necessarily". Of course there are situations when these two methods of DOM update are on par. But in any case I agree with one of answers there: "If you don't mind the fact that innerHTML is a bit limiting (only tot
1097.
▲
by
c-smile
10y ago
We all know that Element.innerHtml = "..." can be significantly faster than set of individual DOM mutating calls. Element.innerHtml = ... gets executed as single transaction - relayout happens only once, at the end of it. Yet ther
1098.
▲
by
c-smile
10y ago
1. Render performance. On Windows Sciter uses Direct2D that is native H/W accelerated graphics rendering layer. Yet it allows to render UI directly into DirectX surface : http://sciter.com/sciter-and-directx/ 2. W
1099.
▲
by
c-smile
10y ago
1. there is a free version. 2. "We have no intention to cover full CSS1/CSS2 attibute map." is a very old statement. CSS 2.1 is implemented in full.
1100.
▲
by
c-smile
10y ago
"Atom is slow and chromium a resource hog..." Check Sciter ( http://sciter.com ) then. It is single dll/so/dylib of 4-8mb without any external dependencies.
1101.
▲
by
c-smile
10y ago
I was considering that approach (using native OS widgets) on initial stages of my Sciter ( http://sciter.com ) development. It didn't went through for the simple reason: set of common widgets in GUI OSes is quite small: butt