HNHacker News
TopNewBestAskShowJobs

Borg3

263 karma · joined September 20, 2021

submissionscomments
Borg3··on C isn't a programming language anymore (2022)
Then use long.. Does Arduino CPU cannot do 16bit add/sub with carry? wtf?
Borg3··on C isn't a programming language anymore (2022)
Like fucking what? If you do any TS.. you just use unsigned whatever fastest type you have on targeting platform, and you do NOT care. 16bit? wrapping at 1 min? Thats eternity even on 2MHz 6502... You just count and substract to get difference. Usually you are <1000ms range.. so wrapping is not a problem..

If you target about 32bit and 16bit, you either think about and using long (on 16 bit is more costly) or you just count seconds.. Or ticks.. or whatever you need.

Borg3··on AI needs to augment rather than replace humans or the workplace is doomed
Destroying planet in the process.. NOTHING is fucking free.. wake up.. It have costs. Energy and waste (waste needs to be reproceesed so energy again).

If you take a look how much energy is put into producing 1kcal of food, you will see that its negative. We put around x6 more that we get (diesel, syntetic fertlizers, water pumping, etc). This is because we have cheap energy, like fossil fuels.. Unfortunatelly, it have hidden costs smartasses didnt anticipate.

Borg3··on AI didn't break copyright law, it just exposed how broken it was
And why you think all the big boys push for ML, LLM, AI? To cut off the middle class. Once stuff will work automagicaly, they can squish even more profits while not caring about middle class at all. They will just ask automatas to do things for them... Great bright future...
Borg3··on Rust in the NetBSD Kernel, and other odd decisions
O really? Please.. can I bootstrap it here?

CYGWIN_NT-5.2 1.3.22(0.78/3/2)

Borg3··on In Europe, wind and solar overtake fossil fuels
Can you provide some citation about CO2 themolysis? I found just one paper from China....
Borg3··on In Europe, wind and solar overtake fossil fuels
Yeah, I did not thats why I asked. Water and Steel doesnt like each other. But thanks for the info.. It seems it can be done in controlled way.

Now I wonder how cost effective it is :)

Borg3··on In Europe, wind and solar overtake fossil fuels
Uh, can you provide any scientific papers that H2 can be used for Iron smelting? CO2 is very stable, even at high temperatures. Its hard to strip O2 from it (except photosintesis). Now, H2 itself is very violatile gas. When burn, it creates water. Water is not stable high temperatures. It become vapor and when temperature rise it can even break bond between H2 and O.

So, papers or are you hallucinating?

Borg3··on Go-legacy-winxp: Compile Golang 1.24 code for Windows XP
But you do NOT need to.. Read about Volume Licencing. You just enter the KEY and vioala....
Borg3··on Go-legacy-winxp: Compile Golang 1.24 code for Windows XP
Win2003 Enterprise does NOT need activation either. It runs smooth offline.
Borg3··on Ask HN: What would make you switch from Gmail to self-hosted email?
The biggest problem I hear from people running own MTA is monopoly of Google and Microsoft. If any of those will mark you as spam, its game over. You can have all the fancy DKIM/SPF/DMARC/whatever setup properly, it doesnt matter, your emails end up in spam folder. This is not bueno..
Borg3··on The IPv4 address swamp: The new normal
Haha yeah, seems so a bit.. There is really no problem with IP reputations at all. If prefix is often moved and traded, just DROP it at edge.. because traffic will be malice anyway.. problem solved.

The really valuable prefixes are those with are stable and have good reputation on them.. Everything else is junk these days..

Borg3··on New mathematical framework reshapes debate over simulation hypothesis
Yeah I guess... But such question is not really intereseting.. Answer is simple, there is nothing behind it.. and people arent confortable with that answer. Hence "How" is more interesting and scientific..
Borg3··on New mathematical framework reshapes debate over simulation hypothesis
Hehe yeah.. For me, its just inverted search for the God. There must be somethink behind it, if its not God, then it must be simulation! Kinda sad, I would expect more from scientist.

The big riddle of Universe is, how all that matter loves to organize itself, from basic particles to Atoms, basic molecues, structured molecues, things and finally live.. Probably unsolvable, but that doesnt mean we shouldnt research and ask questions...

Borg3··on Ask HN: Why Does Ruby Get So Much Hate on HN?
I am more curious why you actually care? Are you doing Ruby coding for living? This seems the only valid reason.

I love Ruby, I write a lot of tools in it. When I need extras, I extend Ruby using C. Its easy to do and very clean. I even write simple GUI stuff in Ruby, because why not?

And I dont really care if Ruby is loved or not. Its Open Source. I made backup of all stuff I care about. Its easy to just rebuild if necessary :)

Borg3··on Malware Hiding in a Fake System32 Directory Using NTFS Trailing-Space Trick
At least, my Cygwin quickly complain there is sth wrong:

  % mkdir '//?/c:/test123 '
  % ls
  ls: test123 : No such file or directory
Still, ls work if test123 is shadowed.

  % ls -d test123*
  test123/  test123 /
But at least, you see it :)
Borg3··on Moss survived outside of the International Space Station for 9 months
Haha, It reminds me some old movie called Andromeda I think... Space human probe crashlanded on earth and contained some greenish patches of stuff on it. It was space dwelling orgamism that direcly used energy to matter conversion for growth. It was pretty decent movie actually :)
Borg3··on GitHub: Git operation failures
10:08:19 up 2218 days, 22:11, 4 users, load average: 0.00, 0.00, 0.00

It just workz [;

Borg3··on Giving C a superpower: custom header file (safe_c.h)
it is very predicatable.. Every call it returns buffer, after 8 calls it wraps. I use such stuff in many places.. GUI programs.. daemons.. Most stuff are single threaded. If threads are used, they are really decupled from each other.

Yes, you should never ever use it in Library.. But small utility functions should be okish :)

This is example from my Ruby graph library. GetMouseEvent can be called alot, but I need at most 2 results. Its Ruby, so I can either dynamicaly allocate objects and let GC pickup them later, or just use static stuff here, no GC overhead. it can be called 100s of times per second, so its worth it.

  static GrMouseEvent evs[8];
  static int z=0;
  GrMouseEvent *ev=&evs[z];
Borg3··on Giving C a superpower: custom header file (safe_c.h)
If you want to return some precalculated stuff w/o using malloc() free(). So you just have 8 preallocated buffers and you rotate them between calls. Of course you need to be aware that results have short lifetime.
Borg3··on Giving C a superpower: custom header file (safe_c.h)
What different behaviour you mean? static in function means that this is just preallocated somewhere in data, not on stack nor heap. Thats it. Yes, its not thread safe so should never be used in libraries for any buffering.

But in program, its not bad. If I ever need multiple calls to it in same thread:

  static char buf[8][32];
  static int z;
  char *p=buf[z];
  z=(z+1)&7;
Works pretty well ;)
Borg3··on Giving C a superpower: custom header file (safe_c.h)
Holy moly.. Thread safety.. Good point and Bad point. I myself use threads sparsly, so I dont intermix calls between threads..
Borg3··on Giving C a superpower: custom header file (safe_c.h)
No, because I did NOT do serious analisis of this. Nor I care, ask upper commenter.. C have some corner case and undefined behaviours and this stuff will make it worse IMO.
Borg3··on Giving C a superpower: custom header file (safe_c.h)
Yeah, kids like to waste time to make C more safe or bring C++ features. If you need them, use C++ or different language. Those examples make code look ugly and you are right, the corner cases.

If you need to cleanup stuff on early return paths, use goto.. Its nothing wrong with it, jump to end when you do all the cleanup and return. Temporary buffers? if they arent big, dont be afraid to use static char buf[64]; No need to waste time for malloc() and free. They are big? preallocate early and reallocate or work on chunk sizes. Simple and effective.

Borg3··on My tutorial and take on C++20 coroutines (2021)
gcc (GCC) 3.2 20020927 (prerelease)

It workz! ;)

Borg3··on You Don't Need Anubis
It seems that people do NOT understand its already game over.. Lost.. When stuff was small, and we had abusive actors, nobody cared.. oh just few bad actors, nothing to worry about, they will get bored and go away. No, they wont, they will grow and grow and now most even good guys turned bad because there is no punishment for it.. So as I said, game over.

Its time to start do own walled gardens, build overlay VPN networks for humans. Put services there, if someone misbehave? BAN his IP. Came back? BAN again. Came back? wtf? BAN VPN provider.. Just clean the mess.. different networks can peer and exchange. Look, Internet is just network of networks, its not that hard.

Borg3··on We need to start doing web blocking for non-technical reasons
If there is indeed a lot of people using VPNs then way not to form darknet already? Ask interested site to peer with you. Peer with others, from overlay network, where you and interested parties will be in control. Its the only way imo. We need to build new net from the scratch, using current Internet as transport. VPNs is so easy to use these days, that even no-tech people can use it. All what is need to be done is to provide service by more technical people.
Borg3··on TernFS – an exabyte scale, multi-region distributed filesystem
Because its a consulting oportunity.
Borg3··on Dynamic Routing on WireGuard for Everyone
Okey, fair point, more easy use for less network oriented people and maybe portability. Altough, I never want my Windows enpoint to do any complicated forwarding :)

I use tinc-vpn so I have automesh out of the box.

Borg3··on Dynamic Routing on WireGuard for Everyone
Whats the use case? Why not grab anything thats already working like FRR or bird or babeld? What benefits will Nylon have over those?

I run myself Overlay VPN network and im just using RIPv3 + BGPv4.

← PreviousPage 3 of 14Next →