Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dom0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
94 ms
·
931.
▲
by
dom0
10y ago
Also: While SIMD does not execute additional instructions, it executes more operations [that's the whole point; it reduces contention and bandwidth needs in the frontend / instruction decoding and scheduling]. A Haswell core peaks
932.
▲
by
dom0
10y ago
CPython only does very few optimizations on the byte code. Most optimizations are in the interpreter itself.
933.
▲
by
dom0
10y ago
> You can't really do loop unrolling and constant folding as some suggest because the number of iterations is determined at run time. Huh?
934.
▲
by
dom0
10y ago
You very well captured the intention of this (or at least what I think is the intention). I mentioned above that in highly abstracted systems it is not at all unusual to spend more time with inefficiencies rather than doing real work: You n
935.
▲
by
dom0
10y ago
Not on a development machine right now, so I just went to godbolt ;) https://godbolt.org/
936.
▲
by
dom0
10y ago
GCC as expected, O>2 sub rsp, 8 mov rdi, QWORD PTR [rsi+8] mov edx, 10 xor esi, esi call strtol <-- atoi xor eax, eax <-- zero return
937.
▲
by
dom0
10y ago
Well the obvious answer would be, eliminate the loop, which is what any compiler optimizer will do ;) But let's assume that the operation is not quite so trivial like here, then this structure would be a prime example where each loop o
938.
▲
by
dom0
10y ago
More impressively, sum.c could go likely an order of magnitude or so faster, when optimized. > Friends who do high performance networking say it's possible to get network roundtrips of 250ns (!!!), Well stuff like Infiniband is less
939.
▲
by
dom0
10y ago
Actually TCP over web sockets [over TLS] over TCP. How's your buffer bloat? — Fine, how's yours? — Great, thanks for asking!
940.
▲
by
dom0
10y ago
It doesn't really matter what they do, since filesystem naming is FUBAR and has been FUBAR pretty much since UNIXv1, and possibly even earlier than that outside the UNIX family.
941.
▲
by
dom0
10y ago
This is not a bug in either, it's a configuration defect. NTFS-3g used with the correct options, namely windows_names, works exactly as expected, but is then not POSIX compliant anymore.
942.
▲
by
dom0
10y ago
This likely differs a lot between countries (though there should be a common core due to ITU of what is being regulated how by whom); in my country the cellular frequencies were auctioned off for dozens of billions of euros to the cellula
943.
▲
by
dom0
10y ago
Maybe, but what would be the point? I knew Qt already (although it's pretty easy to get started), and the UI of the application was quite complex and even with Qt had some custom, complex UI widgets (a node-graph editor, keyframing wid
944.
▲
by
dom0
10y ago
InnoSetup was very easy to get started with and get the expected results, while NSIS looked more complex. I'm not particularly opinionated about installers as long as they install and uninstall things :)
945.
▲
by
dom0
10y ago
In 2012 I could pack a whole Python interpreter, Qt and various image-processing libraries into an InnoSetup installer that just-so scratched the 12 MB mark; I doubt this has changed significantly. Contrary to what the linked (more interest
946.
▲
by
dom0
10y ago
> As far as I know, as long as I have the right to use the frequencies, I could start my own cellular telco that transmits whatever format I want. Point I ("I have the right to use the frequencies") directly depends on point II
947.
▲
by
dom0
10y ago
Normally "large appliance sockets", as he put it, are 400 V / 16 A CEE, though, 32 A CEE is pretty rare in households and more a commercial thing, although you can install it, since total capacity is at least 40 A -- but usua
948.
▲
by
dom0
10y ago
Qt Quick Controls which has nothing to with QtWidgets. > Posted in Dev Loop, Qt Quick Controls, Styles
949.
▲
by
dom0
10y ago
Honestly, this is not a problem in practice; if some application crashes due to a misspelled variable, then that very clearly indicates that testing coverage is lacking. IDEs also tend to indicate this, as do linters. Though your > the m
950.
▲
by
dom0
10y ago
Which is still kinda impressive given that calc.exe starts in milliseconds.
951.
▲
by
dom0
10y ago
> Battery could be problematic indeed, but before looking at my text editor, I would probably first switch from KDE to i3, and then use a lightweight web browser. This would impact it much more than my text editor. This item is about VS
952.
▲
by
dom0
10y ago
I really can't reproduce that. I used MS Office since Office '97, and even Office 2000 on a Windows 98 machine loaded in about three seconds. Nowadays, with Office 2010 or newer you won't even see the splash screen anymore. S
953.
▲
by
dom0
10y ago
> Very simple, there's a couple of orders of magnitude greater number of developers and designers who have skill with web technologies than native UI. [citation needed] - web application development is incredibly complex and can&#
954.
▲
by
dom0
10y ago
Factually incorrect, since Qt uses native widgets when possible. Applying Qt stylesheets usually disables use of the operating system's styling engine, i.e. only then Qt starts drawing the widgets by itself. Widgets that are not part o
955.
▲
by
dom0
10y ago
> On a per-application basis, you are probably correct. But if the additionally abstraction layers allow ... Windows 7 boots in approx. 5 seconds to the desktop (if no password is set), and stuff like Word or Visio starts instantaneousl
956.
▲
by
dom0
10y ago
"Fractional scaling" (I assume you mean e.g. 160 DPI instead of 200 DPI) is no problem even with the older KDE version from F23, just a bit finicky to get started up - but when it runs, it works. Gtk on the other hand seems (seeme
957.
▲
by
dom0
10y ago
It isn't (though it is CoW towards atomic file writing), and my comment was a bit tongue-in-cheek, since there really is nothing close to a portable API to do that. Linux recently gained a copy_file_range syscall which is part of the
958.
▲
by
dom0
10y ago
> (I wonder though what API the "cp" command would use to accomplish that). link(2)
959.
▲
by
dom0
10y ago
So after the last blog post by The Author which mainly showed The Author's lack of understanding, we have another article from The Author highlighting that he does indeed not understand things he writes blog posts about (incorrect rati
960.
▲
by
dom0
10y ago
No, most aren't well built, but that's nothing specific to PCs or even computers. Most stuff is designed to be assembled easily, quickly and cheaply by unqualified workers. That doesn't per se contradict that the result is we
More ›