Readit News logoReadit News
blashyrk commented on Why Nim?   undefined.pyfy.ch/why-nim... · Posted by u/TheWiggles
ziofill · 19 days ago
> In fact, Nim first compiles to C which in turn is compiled to machine code by the C compiler of your choice (gcc/clang).

Can one use the zig compiler after nim has compiled to C?

blashyrk · 19 days ago
Yes, I tried it recently for easy cross-compilation. You can use basically any C/C++ compiler, even TinyCC works (in most scenarios) if you want an extremely fast edit/compile/test cycle.
blashyrk commented on Linux Reaches 5% Desktop Market Share in USA   ostechnix.com/linux-reach... · Posted by u/marcodiego
fghjl · 2 months ago
I assume the problems still are that (1) no Desktop Linux is at the level of macOS or Windows, and (2) the only one close is still RedHat, but most want Debian-based or something else.

MacOS is the best model for a successful desktop Linux to use. Trim down the kernel/drivers to just what runs on that spec hardware, only support that spec hardware, focus effort on the OS and ecosystem, keep it stable, make upgrades trivial, and give it freedom to run other software, terminal apps, etc. And most of all- focus resources on these efforts and charge a lot of money for it!

blashyrk · 2 months ago
Macos window/desktop management is also stuck in 2001 with "magic gestures" tacked on. For someone who hates using these gestures especially when connected to an actually good kb/m, the base desktop experience is horrible. The dock is completely useless, the various cmd+tab or cmd+` shortcuts are unwieldy, Spotlight is growing increasingly worse year after year.

Rectangle/tiling window managers on top is the only way to make it workable.

Apart from wm, the existence of application notarization is a downright insult (though Windows is also guilty of this with smartscreen but to a much lesser extent).

Apple's "pay us 100 bucks a year or we'll tell your users that your program is malware" is just another step in the inevitable game of locking down macos and turning it into a mobile-like hellscape

blashyrk commented on A Rust shaped hole   mnvr.in/rust... · Posted by u/vishnumohandas
blashyrk · 2 months ago
Someone really needs to show Nim to the author :). It checks all of their boxes and then some
blashyrk commented on Let's Learn x86-64 Assembly (2020)   gpfault.net/posts/asm-tut... · Posted by u/90s_dev
archievillain · 2 months ago
I would also recommend TIS-100's "sequel", Shenzhen I/O. TIS-100 is a bit 'dry', with the puzzles being entirely abstract. In SI/O, you roleplay as a developer emigrating to China for work, so all the puzzles are framed as real products you are developing for your company. One of the earlier puzzles, for example, is programming the equipment for a lasertag place.
blashyrk · 2 months ago
I second the Shenzhen I/O recommendation, because apart from only assembly programming, the game also has other constraints in the form of having to spacially arange various chips on a limited "enclosure" for the product you're building and connect them. It also rewards optimization both in terms of assembly and chip usage efficiency. Is a wonderful game, really.
blashyrk commented on Is Rust a good fit for business apps?   bartoszsypytkowski.com/is... · Posted by u/PaulHoule
osigurdson · 6 months ago
Perhaps an interesting question is, can a programming language be created that works well from low level operating system use cases to business apps? Or, is it fundamentally necessary to have multiple languages to cover different domains?
blashyrk · 6 months ago
I think Nim might be a good candidate.

https://nim-lang.org

blashyrk commented on Ask HN: What less-popular systems programming language are you using?    · Posted by u/fuzztester
xigoi · 6 months ago
Nim, I love its “make simple things simple and complex things possible” philosophy.
blashyrk · 6 months ago
I absolutely adore Nim.

That said, the edges are still (very) rough when it comes to tooling (generics and macros absolutely murder Nimsuggest/lsp) and also "invisible" things impacting performance such as defect handling (--panics:on) and the way the different memory management schemes introduce different types of overhead even when working with purely stack allocated data.

But even with all that it's still an extremely pleasant and performant language to work with (when writing single threaded programs at least)

blashyrk commented on EA Open Sources Command and Conquer: Red Alert, along with other games   github.com/electronicarts... · Posted by u/Klaster_1
ageitgey · 6 months ago
Who's going to be the hero that builds a modern update of C&C Generals/Zero Hour with 4k rendering, raytracing, etc?
blashyrk · 6 months ago
Even more importantly, running at 60+fps while not breaking gameplay, physics, shaders, cutscenes...
blashyrk commented on Half of Russia's A320/A321neo Fleet Grounded Amid Engine Issues and Sanctions   aviacionline.com/2024/11/... · Posted by u/belter
lawn · 9 months ago
They can follow the leads of Japan and Germany.

Unconditional surrender, with a complete cultural restructure and admitting to the atrocities, and prosecuting everyone responsible is a good start.

But of course, that won't happen anytime soon.

blashyrk · 9 months ago
But that would imply Russia becoming a neo-colony of the US, like the two mentioned countries. Which I don't think would ever happen, I think Russia would chose MAD over that if forced to make that choice. Russia under Yeytsin was already drifting towards becoming something like that, and has been firmly going in the other direction ever since
blashyrk commented on First Ever Recorded Use of ICBM in War   funker530.com/video/break... · Posted by u/seanw444
ChumpGPT · 9 months ago
Here is a link of what I imagine is the war heads falling after the ICBM was destroyed over the skies of Dnipro, Ukraine

https://imgur.com/a/KKvne6F

blashyrk · 9 months ago
Destroyed how? Are you saying it was shot down? Did you see the speed of reentry here? What kind of AA has the capability to destroy a projectile this fast? This looks like MIRV, not remains of a destroyed missile.
blashyrk commented on Two undersea cables in Baltic Sea disrupted   cnn.com/2024/11/18/europe... · Posted by u/mooreds
VagabundoP · 10 months ago
That was not a NATO action.
blashyrk · 10 months ago
It's literally on the NATO website for crying out loud.

u/blashyrk

KarmaCake day179August 4, 2023View Original