Better HN
topnewbestaskshowjobs
Log inSign up

ColonelPhantom

645 karma · joined Oct 28, 2016 (10y ago) · 374 submissions

Submissions

comment 4y ago · link · parent

DuckDuckGo does quite well here for me, as long as I enable the button for localized results. I very much like that it's an option there.

comment 4y ago · link · parent

llvm/clang does not cross-compile "without a lot of problems". See this post from Zig's creator: https://andrewkelley.me/post/zig-cc-powerful-drop-in-replace...

zig cc uses clang under the hood, and Zig the language is also mostly based on LLVM, but zig cc ships a lot of versions of libc to ensure that it can properly compile to all platforms without weird linker errors.

comment 4y ago · link · parent

Or roads are badly designed, in a way that their psychological speed limit is higher than what is indicated. But the lower limit can have more reasons, such as noise pollution near a residential area, or pedestrian safety.

comment 4y ago · link · parent

High speed variance can also be dangerous, since it encourages people to do overtaking maneuvers. This effect is probably significantly strong in low-visibility conditions.

comment 4y ago · link · parent

Intel did have any major advances from 2nd gen all the way until the 7th. The advancements were generally small (single-digit often) IPC or clock speed improvements.

Only after AMD released Ryzen, Intel had to respond at their 8th gen by cranking up core counts. And IPC did not have any increases, until 11th gen(the backported arch you mentioned). In my opinion, the performance delta between 28nm Sandy Bridge and 14nm Kaby Lake is ridiculously small.

comment 4y ago · link · parent

I'm actually using Lite-XL as essentially my main editor. I even wrote (at least the initial part of) a more usable terminal emulator plugin [1] based on libtmt (I think the community is working on replacing it with something even better).

I'm using the mentioned lint+ plugin, but for example also the LSP plugin, which is extremely useful, and a lot of others as well.

I love how fluid the entire editor feels (mostly, sometimes there's a small delay e.g. when I close the last tab in a language which terminates the language server synchronously). It's also extremely nice in terms of scaling support (super fine-grained and high quality at any scale).

comment 4y ago · link · parent

My machine has 8 GB of RAM and I complain about Electron, because it's still sluggish, looks out of place and with how prevalent it is, running 3 instances is not rare (eg Slack+Discord+VSCode), which together eat up easily multiple gigabytes of RAM, and then there's also still my regular web browser.

comment 4y ago · link · parent

Where I live, Fiber to the Home is becoming a lot more common, and it's pretty much always symmetric. I hope FTTH will spread more, since it's a great connection type.

comment 4y ago · link · parent

Great project! How does the performance compare with conventional CPU/GPU based inference? Those devices are usually a lot higher power (and bigger/more expensive), but obviously do not benefit from specialization.

comment 4y ago · link · parent

I think iCE40 LP/HX series are the biggest ones, but the iCE40UP5K is also neat: it has hardware multipliers unlike the LP/HX, and a relatively large 1 megabit RAM on-chip. Unfortunately, I think the UP family is relatively slow (as in propagation delay/max clock frequency).

comment 4y ago · link · parent

Pip being good or bad aside, Python does have a very extensive ecosystem. It's very well equipped for many tasks, from machine learning (numpy/scipy/etc) to website creation (Django).

I don't really like Python, but I have to admit that those tools are very convenient.

comment 4y ago · link · parent

I use lvmcache for my desktop, which has an old and tiny SSD (most of which is given to Windows) but a large HDD. Performance can be unpredictable at times, but is generally quite good.

comment 4y ago · link · parent

I don't see template operations as imperative, rather I see them as declarative: you write the HTML and declare lists/placeholders inside the HTML. You also don't generally do much with the data except insert it into HTML; the rest of the backend is responsible for fetching/etc the data.

comment 4y ago · link · parent

Isn't a template essentially a "function" that takes data and returns a view? I don't have much experience with UI programming but I don't really see the conceptual difference.

comment 4y ago · link · parent

I think most of today's software runs on any AMD64 CPU. That said, this is changing. GCC and LLVM developers have introduced aliases "x86_64-v2" through "x86_64-v4", with the non-existent "v1" being the base spec as defined by the Athlon 64/Opteron.

v2 adds for example SSE4.2 and SSSE3, present since Intel Nehalem (first-generation Core i7 etc). I think other families support v2 since Intel Silvermont (Atom), AMD Bulldozer (FX), and AMD Jaguar (AMD E-series). I think one of the bigger losses would be AMD Phenom/Phenom II.

I think Red Hat wants to require x86_64-v2 starting with RHEL9. Arch Linux seems to also have considered it, but seemingly has since decided to support both v1 and v3, to provide both a bigger speed boost and better compatibility with old PC's.

comment 4y ago · link · parent

That's a very hard question.

First of all, it depends on what your goal is. Do you want to create a high-performance general-purpose CPU? Do you want to create a power-efficient CPU? Maybe a special-purpose accelerator? How about a low-cost microcontroller?

Second of all, none of those above are directly dictated by the ISA, but rather by the hardware implementation (think AMD Zen vs Intel Core or the embedded ARM Cortex M4 vs higher-performance Cortex-A53). An ISA can however more easily accommodate certain goals (RISC-V for example is very easily extensible, so if you want to create a special-purpose CPU, it might be right up your alley).

Finally, software also matters a lot. Compiler quality is very important in the resulting performance. I think mediocre compiler support and insufficiently advanced compilers are one of the reasons Intel Itanium never took off, for example. Itanium was a very complex ISA and therefore harder to exploit to its full potential.

comment 4y ago · link · parent

There actually exists at least one GPL-licensed GPU core (GPLGPU), but it's based on a 90s PC 3D accelerator that's really just not that good.

I believe the team behind LibreSOC is also working on a 3D processor, but I don't know how far along they are.

However, if a vendor instead ships a decent framebuffer and high-performance vector unit, I think LLVMpipe would not be a problem for most RPi-equivalent use cases, either light desktop use or server use (especially the latter!)

comment 4y ago · link · parent

I'm quite certain it has. I believe Windows on ARM now ships with x86 emulation, allowing it to run any program (albeit more slowly). I'm not sure about the state of WSL on ARM, but Linux on ARM in general is a nearly indistinguishable experience from Linux on x86, with the exception of proprietary software which is for the most part relatively rare on that platform.

comment 4y ago · link · parent

Sadly, I don't think Qualcomm is even any worse than average. I don't think for example MediaTek, Samsung or Nvidia are doing any better.

I think even the Pinephones with their Allwinners and Rockchips aren't perfect, with both models being based on I believe older SoCs (although the Rockchip in the Pro has been modified, afaik).

comment 4y ago · link · parent

How much of that is attributed to GPUs? Do ASICs or FPGAs have any significant marketshare in ETH mining?

comment 4y ago · link · parent

And the AGPL does not limit commercial use, commercial development, or commercial distribution any more than the plain GPL (either v2 or v3) does. It just increases virality a bit, but personally I am of the opinion that that is an essential ingredient of allowing free software to remain free.

I also do not understand why "you need to share the source when you expose" is apparently so much worse than "you need to share the source when you distribute".

comment 4y ago · link · parent

What OS are you running inside the VM's? I was quite late with upgrading to an SSD, and Windows 10 was unusably slow, while Linux was quite usable. Sure, it still got quite a bit faster with an SSD, but it was far from as life-changing as it was for Windows.

comment 4y ago · link · parent

With the exception of Qt, none of those platforms are, in any way, shape or form, cross-platform. Visual C++ is Windows-only, and C++ Builder supports only Windows and iOS (??). So you don't solve the problem, merely invert it. Instead of everything-except-Windows, you now support only-Windows.

I also don't see how using VC++ for example circumvents API issues, since it's just a compiler. I can imagine that Qt might solve some issues, since it offers a very wide set of abstractions. As such, it can probably do things like convert string formats on-the-fly between getting it from the OS and passing it to your application.

comment 5y ago · link · parent

And where do you suggest an average person gets the money to do this? A lot of people cannot even afford to buy a home for themselves, let alone a 2 family unit.

comment 5y ago · link · parent

What is meant is that Firefox's market share on desktops is 8%, so it is more popular on desktop than on mobile.

comment 5y ago · link · parent

I believe that SQLite in Write-Ahead Log (WAL) mode does not have this issue.

comment 5y ago · link · parent

The page asks me for a login. Is it supposed to be public or not?

comment 5y ago · link · parent

According to WikiChip, UMIP got added in Zen2 (Ryzen 3000), while MS supports Zen+ (Ryzen 2000).

comment 5y ago · link · parent

In what way is Vulkan not portable? It runs on all operating systems (Windows 7+, Linux, Android, and Apple via MoltenVK) and all GPUs (AMD GCN, nVidia Kepler, Intel), and shaders (compute and rendering) are to my knowledge standardized in the portable SPIR-V bytecode.

WGPU is more portable, since it can use not only Vulkan but also other APIs like OpenGL and Direct3D 11, but Vulkan is already very highly portable for almost everyone with a computer modern enough to run anything related to GPU compute.

comment 5y ago · link · parent

So if there is 'proper dependency management' (what do you propose? are we too fixed in versioning, too loose?) how will you fix the next Heartbleed? Pushing updates to every single program that uses OpenSSL is a lot more cumbersome (and likely to go wrong because there is some program somewhere that did not get updated) than simply replacing the so/dll file and fixing the issue for every program on the system.

And in case your definition of proper dependency management is 'stricter', then you simply state that you depend on a vulnerable version, and fixing the issue will be far more cumbersome as it requires manual intervention as well, instead of an automated update and rebuild.

If it is looser, then it will also be far more cumbersome, as you have to watch out for breakage when trying to rebuild, and you need to update your program for the new API of the library before you can even fix the issue at all.

1
910111213