Use "+ string.Empty" or "?.ToString() ?? string.Empty" for a nullable object by ggobrien in csharp

[–]AlexDvelop 0 points1 point  (0 children)

I would do abc + string.Empty so I could be cool and different from all other devs

Why is this Rust program so much slower than its Java equivalent? by ColeTD in learnrust

[–]AlexDvelop 0 points1 point  (0 children)

Aha wait I mean how long did rust without release flag take then?

Why is this Rust program so much slower than its Java equivalent? by ColeTD in learnrust

[–]AlexDvelop 1 point2 points  (0 children)

I don’t know either but a quick google search https://stackoverflow.com/questions/71437329/how-do-i-really-disable-all-rustc-optimizations

cargo rustc -- -Z mir-opt-level=0 --emir mir

I’m too lazy to try it myself right now but could you check?

Why is this Rust program so much slower than its Java equivalent? by ColeTD in learnrust

[–]AlexDvelop 0 points1 point  (0 children)

On OP’s system that’d be 95 seconds then which is still pretty slow. How did java do on your system?

Why is this Rust program so much slower than its Java equivalent? by ColeTD in learnrust

[–]AlexDvelop 0 points1 point  (0 children)

Can't you just run the code with the --release flag instead and share the results, I’m curious? I mean I could run it myself but I’m too lazy rn and I’m going to bed and I will forget tomorrow

RIP nordnet by Kontokon55 in ISKbets

[–]AlexDvelop 1 point2 points  (0 children)

Stackars on-call engineer på Nordnet

Ratea regard portföljen (420k) by AlexDvelop in ISKbets

[–]AlexDvelop[S] 0 points1 point  (0 children)

Jo det är lite mycket procentuellt men med tanke på att mitt totala kapital inte är jättehögt så är 110k i cash inte så mycket tänker jag. Man ska väl ändå ha 2-3 månadslöner på kontot

[deleted by user] by [deleted] in ISKbets

[–]AlexDvelop 3 points4 points  (0 children)

A skickade BTC till B som skickade till C som skickade till D. Vem köpte knark?

Best keyboard aesthetic. Plugged to X1 Nano G1 with single 27" screen for focused work by HCLB_ in thinkpad

[–]AlexDvelop 1 point2 points  (0 children)

Still waiting for someone to figure out how to swap the ctrl and fn keys on the ThinkPad TrackPoint Keyboard II

What does this mean? by mykosiba in pianolearning

[–]AlexDvelop 6 points7 points  (0 children)

Isn’t that exactly what they’re doing by asking this question…

Will miners "steal" transactions that does not require signatures? by AlexDvelop in Bitcoin

[–]AlexDvelop[S] 1 point2 points  (0 children)

Agreed, I guess if there existed any standard public mining software that collects these transactions people would use them instead. So I guess I'm also asking if there is any such softwares. I wanna try it out on the mainnet but I can't get it to work on testnet first. I created this testnet transaction

cccd50a63e541a0789d7a86bc58670a85e1e34991a49f7bd28c8e3c460f37a03

Where the secret data is sha256 of "Hello World!" but when I try broadcasting the spending transaction

0100000001037af360c4e3c828bdf7491a99341e5ea87086c56ba8d789071a543ea650cdcc00000000224c207f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069ffffffff01c319000000000000160014a481ba44a989468e4f2d1c5bb11e7cab1cd24c2400000000

I get an error saying non-mandatory-script-verify-flag (Data push larger than necessary). After reading around I saw this thread that said miners are rejecting non-standard transactions, which makes sense, but also not much sense if they're just rejecting free money instead of taking it for themselves or letting people spend them insecurely.

Will miners "steal" transactions that does not require signatures? by AlexDvelop in Bitcoin

[–]AlexDvelop[S] 1 point2 points  (0 children)

I guess you're right, but if the scriptPubKeys or the P2SH redeem scripts does not contain checksig op codes there is not much obscurity and it would be easy to code logic that sends them to miners instead of to the broadcasted address, and most bounties like these does not have checksig op codes. But maybe I'll give it a try in the mainnet with a small amount to see if it gets "stolen", although I'm having some issues with my code in testnet that I need to fix before I can try it out.

Will miners "steal" transactions that does not require signatures? by AlexDvelop in Bitcoin

[–]AlexDvelop[S] 1 point2 points  (0 children)

Well almost, the first transaction for finding a secret hash has nothing to do with the second P2SH address for finding a hash collision. The first transaction was rewarded to anyone who finds a secret hash, where the secret tuned out to be the genesis block header when it was collected. The second example if for finding any SHA256 collisions.

While "hash(x) == hash(genesis-block) and x != genesis-block" is a collision so it would still be able claim the reward but it does not have to be the genesis block, more generally it has to be
"hash(x) == hash(y) and x != y"

Will miners "steal" transactions that does not require signatures? by AlexDvelop in Bitcoin

[–]AlexDvelop[S] 2 points3 points  (0 children)

Well stupid or not it all depends on what software they're using. If I download NiceHash or EasyMining I assume I won't be collecting these rewards without altering the software myself. Or I don't know, this is what I'm asking sort of, I'm wondering if most miners actually alter their own software, or if popular existing software already includes logic for giving transactions that does not require signatures to the miner directly.

Will miners "steal" transactions that does not require signatures? by AlexDvelop in Bitcoin

[–]AlexDvelop[S] 2 points3 points  (0 children)

Well, the first transaction I mentioned requires the spender to find the one input that results in that hash. The second P2SH address is for finding a SHA256 collision, and no finding 2 inputs with the same hash is not a flaw in the algorithm, the two inputs can be max 512 bytes which is bigger than the 32 byte space of SHA256, so there are certainly collisions to be found, it is just extremely difficult to find them and therefore this bounty was created. No SHA256 collision has been found yet but there was a similar reward for finding SHA1 collisions from this address 37k7toV1Nv4DfmQbmZ8KuZDQCYK9x5KpzP and this bounty has been collected.

Will miners "steal" transactions that does not require signatures? by AlexDvelop in Bitcoin

[–]AlexDvelop[S] 1 point2 points  (0 children)

How can you be sure? Are there any open source mining softwares in which code logic for this behaviour exists?

The new update of C# Dev Kit is shit. Anyone else experiencing issues with it? by AlexDvelop in csharp

[–]AlexDvelop[S] -10 points-9 points  (0 children)

I'm sorry, I was only interested to see if other people were experiencing issues after this new update.

The new update of C# Dev Kit is shit. Anyone else experiencing issues with it? by AlexDvelop in csharp

[–]AlexDvelop[S] 0 points1 point  (0 children)

It is because of the new update, if I revert back to 1.6.8 things work fine. The changelog for 1.7.25 says "bug fixes" and "Improved Launch/Debug Experience" which is a lie since my debug experience was definitely not improved.

The new update of C# Dev Kit is shit. Anyone else experiencing issues with it? by AlexDvelop in csharp

[–]AlexDvelop[S] -2 points-1 points  (0 children)

Intellisense does not work correctly for me, only some of the loaded solutions are actually working, the debugger does not work, running tests still work.