Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wheelerof4te
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
661.
▲
Ask HN: Is Python's dict key-sharing exclusive to class instance variables?
2 points
by
wheelerof4te
5y ago
|
2 comments
662.
▲
by
wheelerof4te
5y ago
What is an Interface? What is a dependency injection? How can you explain them to someone who never needed to use them? Do I need unit tests when my code is dead simple, or written in Rust? Etc...
663.
▲
by
wheelerof4te
5y ago
I tried Golang while I was experimenting on Linux. Fun little language, but I haven't got used to it's type notation. What is the state of Golang's Windows support?
664.
▲
by
wheelerof4te
5y ago
I often find myself prefering languages with few abstractions even when some more complex language might be "better". Reason is that with "bare" languages like C, you can choose your own design more freely. Case in point
665.
▲
by
wheelerof4te
5y ago
Well, what a wonderful community. On the other hand, this is what happens when core developers of a previously beloved project get "contacted" by Big tech players.
666.
▲
by
wheelerof4te
5y ago
Lot of games develop some kind of logical thinking. RTS games in particular. I remember playing Age of Empires 2 as a teenager and enjoying the amount of choices I have to win the game. Plus, the game teaches you about efficiency like few o
667.
▲
by
wheelerof4te
5y ago
It is a religion at this point. Political views have parties and parties have supporters. FSF is more like a cult that has followers. How else do you explain their rejection to include Debian as a fully free distro?
668.
▲
by
wheelerof4te
5y ago
I just tried Poetry on Windows. Installation is a mess, and official recommendation of "copying a powershell line" was already a red flag. Now I can't remove it. Poetry is a convoluted, insecure mess. Please avoid it and use
669.
▲
by
wheelerof4te
5y ago
The blog post recommends build, not Poetry. But I guess the Python devs finally started taking this seriously. Since build is semi-official Python project, I will use it instead of Poetry. We can no longer rely on setup.py, it seems. Thanks
670.
▲
by
wheelerof4te
5y ago
I meant that it is built-in to the language and supported in syntax. Something like Go's channels.
671.
▲
by
wheelerof4te
5y ago
How heavy is Poetry tool? What's it's selling point when compared with setuptools? With setuptools, I just make setup.py and run pip install inside the root directory. If I have wheel, pip builds a wheel for my package. Sorry, but
672.
▲
by
wheelerof4te
5y ago
Something like this should not be possible. Instead of adding new "features" left and right, Python must deal with problems like these. Fix the bugs, improve performance, sort out packaging. Leave the language as it is, improve th
673.
▲
by
wheelerof4te
5y ago
You can see him program it from scratch on Youtube. He specificaly mentioned Valgrind as an inspiration.
674.
▲
by
wheelerof4te
5y ago
Not Andreas, but he was able to port some older games to Serenity. Games like DOOM, original Quake, DukeNukem and Diablo 1. You should be able to compile some NES emulators yourself. The OS itself runs in custom VM, but Andreas did manage t
675.
▲
by
wheelerof4te
5y ago
That is really inspiring to see!
676.
▲
by
wheelerof4te
5y ago
Besides the already mentioned "donate via crypto" red flag, this argument is NULL and void. Different languages were made with a reason, and they solve different problems. Even Python can be efficient when your largest bottleneck
677.
▲
by
wheelerof4te
5y ago
It is usable only in a VM, sadly. If you like to hack around and enjoy playing Diablo 1 on obscure software, Serenity OS is for you :)
678.
▲
by
wheelerof4te
5y ago
I've been following Andreas on Youtube for quite some time. It is a monumental undertaking to write a completely new OS from scratch, and I admire his perserverence so far. He has managed to make a worthy tribute to both UNIX and old W
679.
▲
by
wheelerof4te
5y ago
I just took a glance at Zig, but I don't think we need better C. C has it's niche and will for some time. The most natural evolution at this point is to develop languages that have powerful, native multi-threading support. So far,
680.
▲
by
wheelerof4te
5y ago
Yes, Win32 API is ancient. No, it does not mean it's useless.
681.
▲
by
wheelerof4te
5y ago
C++ is indeed the most useful for use-cases where high-performance coincides with heavy OOP needs. Games fall right into that category. But my hope is that one day people will write games in more secure and slightly less verbose languages,
682.
▲
by
wheelerof4te
5y ago
If you avoid placing packages in the distribution's system Python (by using a venv) and if you aren't using some outdated distro version, your Python should be good enough. You must write backwards compatible code anyway, if you
683.
▲
by
wheelerof4te
5y ago
C is also one of the hardest languages to master. It is dead simple to learn, but also hard to use the language to do any complex thing on time . Should we factor in the additional energy and time of running the developer's machine ju