HackerTrans
TopNewTrendsCommentsPastAskShowJobs

hmfrh

no profile record

comments

hmfrh
·قبل سنتين·discuss
> Yes. The exporters can handle whatever meaningful address selection you can throw at them, including multiple disjoint ranges within the same section. So you can keep carving holes inside your selection until nothing remains of the original program.

Will this also work without painstakingly reversing things in the binary, say in the case of a giant game executable?

If possible, I would be very interested in a simple tutorial that takes an arbitrary Windows executable, delinks it and replaces a single function, without all the extra steps necessary to run it on the PS1.

It might even be preferable if it worked with MingW, since I'm on Linux as well.
hmfrh
·قبل سنتين·discuss
> As long as you do not cut across a variable or a function, you can export pretty much however you want, you don't have to follow the original object file boundaries.

Would it be possible to export basically the entire program at once and then slice off individual functions one by one?

Do you have any guides/examples of the

> Decompilation projects, by splitting a program into multiple object files and reimplementing these Ship of Theseus-style

style project?
hmfrh
·قبل سنتين·discuss
How much work is it to figure out which sections of the executable to export?

Would it be realistic to be able to export a modern-ish (2008-2015) Win32 game into objects and then compile/link it into a full executable again with less than a few hours work?
hmfrh
·قبل 3 سنوات·discuss
> So ultimately, the borrow checker doesn’t seem worth it if you actually think about the cognitive overhead and headaches it brings.

You quite literally also have to "borrow check" C/C++ in order to have a well formed program, just without any compiler assistance.
hmfrh
·قبل 3 سنوات·discuss
Surely the C++ surface area will also have increased significantly in the same span of time which means that Rust will still be ahead?
hmfrh
·قبل 4 سنوات·discuss
Other than Godbolt Rust also has cargo-show-asm[1] that directly shows the actual assembly.

[1]: https://crates.io/crates/cargo-show-asm
hmfrh
·قبل 4 سنوات·discuss
It appears to also be called the "abstract machine"[1].

C semantics do not work "directly on the hardware" but instead on an abstract machine that is then converted to the actual hardware.

It most often comes up when talking about undefined behavior and pointer behavior.

Some assorted reading, mostly in the context of Rust and C:

https://blog.regehr.org/archives/213

https://raphlinus.github.io/programming/rust/2018/08/17/unde...

https://www.ralfj.de/blog/2018/07/24/pointers-and-bytes.html

https://www.ralfj.de/blog/2017/06/06/MIR-semantics.html

[1]: https://stackoverflow.com/questions/53100198/what-is-the-pre...
hmfrh
·قبل 4 سنوات·discuss
> C having better support for pointers make it near to how the processor works, compared to other languages.

Java is almost entirely pointers to heap allocations, yet I don't think anyone would argue that Java is close to how the processor works.

I also don't think that the C virtual machine is all that close to how machines actually work any more.
hmfrh
·قبل 4 سنوات·discuss
> Do you want criminal prosecution for actual harm, or for potential harm?

Do you only want DUI to be illegal if it results in an accident?
hmfrh
·قبل 4 سنوات·discuss
> And how is these countries joining NATO benefiting the existing NATO members?

Stability in Europe. The west doesn't want refugees from whatever country Russia decided to invade this week to show up on their doorstep all the time, or the supply chain interruptions that happen when war constantly breaks out. You might remember that NATO arose almost immediately after World War 2 which had a rather negative effect on Europe and European influence in the world.

> Obviously, Russia has nothing more to lose given the sanctions, so, the only thing left is a direct NATO conforntation,

Russia has plenty more to lose. Namely every major European power and the US unloading all their armaments on Russian cities that are very close to the border.

> but it seems that the West is more afraid of such conflict than Putin, who believes that this is inevitable and that if you're faced with an inevitable flight, it's better to strike first.

This is an absolutely unrealistic take. Russia _can not_ win major combat against NATO in any shape or form. They couldn't do it with their made up propaganda army and they certainly can't do it with their actual army.
hmfrh
·قبل 4 سنوات·discuss
> It all looks rosy now, but remember just a few years ago when Turkey shot down a Russian jet on the Syrian border and almost led to NATO involvement?

Remember when Russia invaded Ukraine and it didn't lead to NATO involvement? We have direct evidence that a European country can be attacked without NATO immediately jumping in to help. If Russia "only" wanted the Eastern "wilderness" of Finland, do you think the other European powers would immediately send in their own troops?

There's a reason that the smaller European countries that border Russia haven't been attacked and absorbed yet, and that's because they're NATO members.

Being a NATO member clearly has more upsides than downsides.
hmfrh
·قبل 4 سنوات·discuss
You probably think that you do, but in reality you don't.

Large corporations have been proven to fix wages for tech workers[1]. There's literally no way that you could have any possible way of bargaining your way around that as a single person.

[1]: https://www.npr.org/sections/thetwo-way/2014/04/24/306592297...
hmfrh
·قبل 5 سنوات·discuss
> where is the bad news?

The bad news come when you reach the "Extinguish" phase. [1]

[1]: https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguis...
hmfrh
·قبل 5 سنوات·discuss
Introducing a new keyword means that all existing code that uses the new keyword as an identifier will break. That's why the `constexpr` keyword is deliberately weird.

It's also why they reuse keywords like `using`.
hmfrh
·قبل 5 سنوات·discuss
> She leaked a trove of internal research and communications showing the company was aware of the ills of its platforms, including the toxic risks of Instagram to some teenage girls' mental health and the prevalence of drug cartels and human traffickers on its apps.

Please read the article next time.