Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rahen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
421.
▲
by
rahen
4y ago
Have a look at the Tiny Go compiler, which does more optimizations: https://tinygo.org/docs/concepts/faq/what-is-tinygo/ As mentioned you can also bypass the GC for performance critical sections.
422.
▲
by
rahen
4y ago
Go is fully native unlike VM-based languages. It stands half way between C/C++/Rust and Java/C#. Also, for performance critical sections, you can bypass the GC by importing "C" and "Unsafe" to get manual m
423.
▲
by
rahen
4y ago
Previous submission: https://news.ycombinator.com/item?id=32485886
424.
▲
by
rahen
4y ago
Yes, considering this program ran from April 1947, it can almost be considered computer archeology. I find it fascinating they already came up with labels and functions. The ENIAC is a fascinating machine as well, from its initial modular,
425.
▲
by
rahen
4y ago
For those interested, the first Monte Carlo program, which ran on the ENIAC, has been found and documented (840 instructions long). It was also the first stored program ever run. https://eniacinaction.com/the-articles/3
426.
▲
by
rahen
4y ago
Mystery and craftsmanship. It's the same feeling as restoring an old car and being captivated with some very simple, ingenious and alien mechanics. Same with computers, the older it gets the more interesting it becomes, down to deciphe
427.
▲
by
rahen
4y ago
import "C" import "Unsafe" is all you need for manual memory management and pointer arithmetic with Go. Since the GC is fairly light and snappy, I find it's best of both world to only resort to Unsafe for
428.
▲
by
rahen
4y ago
It's not a native desktop app either, it embeds a large JIT and a hello world is around 50 MB.
429.
▲
by
rahen
4y ago
OP insisted on _native_ desktop apps, not wrapped web apps. Otherwise Java/Swing would have been a no-brainer.
430.
▲
by
rahen
4y ago
What's wrong with Object Pascal? "Plain" Pascal is about as efficient as C, uses slightly less memory, is safer because of its lower dependency on pointers, and is easy to work with, especially with strings. Then Object Pasca
431.
▲
by
rahen
4y ago
Page 50: "A compromise between assemblers and high-level languages, C helps programmers avoid the idiosyncrasies of particular machines". Interesting. I thought C appeared as a (very) high level language back in 1983, when develop
432.
▲
by
rahen
4y ago
Likewise. Go was engineered for simplicity mostly in reaction to the complexity of C++. As anticipated, now that we got generics, some developers keep asking for more and more features. Let's not turn Go into another C++ when its goal
433.
▲
by
rahen
4y ago
Go was created for correctness. It is strongly, statically typed, it won't compile if there are unused imports or variables, and it won't compile either if you don't free up resources after usage. C/C++ don't do tha
434.
▲
by
rahen
4y ago
> Python/Go I wouldn't put those two languages in the same class. Go has about the performance of Java/C# with about the memory usage of C++. It's much closer in performance and resource efficiency to those languages
435.
▲
by
rahen
4y ago
So a young developer inexperienced with COBOL and old computers tries to set up his modern days IDE for it, "laughed hard" (sic) judging it by modern standards, then publishes a long article to share his misconceptions. Honestly,
436.
▲
by
rahen
4y ago
Cygwin is extremely lightweight, it's basically just a library implementing the POSIX syscalls, and native win32 apps linked to it. Since it's so lightweight, you can have, use, and throw away as many cygwin envs (folders) as you
437.
▲
by
rahen
4y ago
Ditto. Unions are just another lobby. They seek subsides, money, and power. Unions, like companies and governments, exist mostly for themselves. That doesn't mean they don't mean well (sometimes), but trusting them shows a bit of
438.
▲
by
rahen
4y ago
Dacia does. The Spring and Sandero are hugely popular in Europe as no-frills cars.
439.
▲
by
rahen
4y ago
Link to the actual research paper: https://haslab.github.io/SAFER/scp21.pdf
440.
▲
Programming Languages Energy Efficiency
(thenewstack.io)
3 points
by
rahen
4y ago
|
1 comments
441.
▲
by
rahen
4y ago
This works differently on a stack CPU but it can also be done. https://en.wikipedia.org/wiki/Stack_machine#Out-of-order_exe...
442.
▲
by
rahen
4y ago
When Burroughs started experimenting with stack processors in their B5000 computer, they didn't do it for code size but the ability to use high level languages first, going as far as to hide assembly language to the user. Compilers are
443.
▲
by
rahen
4y ago
It seems common all across Europe, maybe the whole western world. Here for France: https://www.60millions-mag.com/tests-comparatifs (I just laughed as I see they even review fries brands, and sex toys...)
444.
▲
by
rahen
4y ago
Which is why industrialized countries with higher population density move back even faster to pre-WWII urban planning (EU), or sometimes never left it (Japan).
445.
▲
by
rahen
4y ago
> it would be wise to invest in a world where we move more towards these superior modes of transportation This simply is pre-WWII urban planning. We used to have sustainable cities and comprehensive passenger rail systems before we teare
446.
▲
by
rahen
4y ago
> does anyone know a lightweight Explorer alternative? PowerShell. It's builtin, uses little resources, is fast, has pattern globbing, autocompletion, and can be as efficient as using the coreutils on *nix. Unfortunately nnn and Ran
447.
▲
by
rahen
4y ago
I keep a bad memory of how slow XP, 2000 and even NT4 were on late 90s machines. Windows 9x was a strange beast, being a VM running on top of a DOS hypervisor, but it was mostly C and inline assembly and felt fast, even with 8MB of memory a
448.
▲
by
rahen
4y ago
Writing for the top performers is the main reason why computers turn into e-waste. It's Wirth law applied. I wish more developers would work on RPIs for the same reason.
449.
▲
by
rahen
4y ago
I eventually found a solution: an actual configuration file to write in a new folder, followed by a reboot. Totally undocumented, of course. https://medium.com/@elhayefrat/how-to-fix-the-home-and-end-b... What seems ap
450.
▲
by
rahen
4y ago
> I should be the user, it should be the tool, not the other way around. > A good operating system: Mac OS. Windows has become so user-hostile that I refuse to get near it. Linux breaks the rule above: a person's primary task sho
More ›