There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

cypherpunks , (edited ) in thisIsGoingToBeASeriousDebate
@cypherpunks@lemmy.ml avatar

dc <<<‘10435358689859 70511561 11297399 23 5 3 2 ******P’

note: lemmy’s “smart quotes” vs its input sanitization required me to code-format the second half of that line (and not the first half) to make it copy+paste runnable.

DNOS , in thisIsGoingToBeASeriousDebate

Ec Emm this side is the best one …

++++++++[< +++++++++>-]<. ++++[<+++++++>-]<+. +++++++… +++.

++++++[<+++++++>-]<++. ------------. ++++++[<+++++++++>-]<+. <. +++. ------. --------.

++++[<++++++++>-]<+.

verstra , in thisIsGoingToBeASeriousDebate

Camel case?

this_is_not_going_to_be_a_serious_debate

Sigmatics , in They used coding and algorithms

Very high effort reddit screenshot repost

r00ty Admin , in They used coding and algorithms
r00ty avatar
function goingToCrashIntoEachother()
{
    // NYI
    return false;
}
odium ,

//TODO: implement logic

ChaoticNeutralCzech ,

<span style="color:#323232;">//tested: 100% working on actual drone
</span>

– You mean drones, right?

nxdefiant ,

unittest 100% complete, story closed.

guycls ,

Ship it!

Cwilliams , in They used coding and algorithms

Yes, very

iAvicenna , in They used coding and algorithms
@iAvicenna@lemmy.world avatar

In their head that probably sounds like levitation and animation spells

darcy , in Hobbyte
@darcy@sh.itjust.works avatar

hoGiB

threelonmusketeers ,

Hogibibyte?

raubarno , in thisIsGoingToBeASeriousDebate

Why do you call write() for every char? You can always just pass a pointer with its length.

TadoTheRustacean OP ,

I am not skilled enough to do that ngl

Speiser0 , (edited ) in thisIsGoingToBeASeriousDebate

Definitely left. Right one won’t be optimized. (And there are so many some mistakes in your inline asm…)

TadoTheRustacean OP ,

What mistakes?

Speiser0 ,

Mostly the missing listing of clobbered registers. Other than that it’s mostly just that you’re doing useless things, like manually putting the stuff into the registers instead of letting the compiler do it, and the useless push and pop. And the loop is obviously not needed and would hurt performance if you do every write like that.


<span style="color:#323232;">asm!(
</span><span style="color:#183691;">"syscall"</span><span style="color:#323232;">,
</span><span style="font-weight:bold;color:#a71d5d;">in</span><span style="color:#323232;">(</span><span style="color:#183691;">"rax"</span><span style="color:#323232;">) </span><span style="color:#0086b3;">1</span><span style="color:#323232;">,
</span><span style="font-weight:bold;color:#a71d5d;">in</span><span style="color:#323232;">(</span><span style="color:#183691;">"rdi"</span><span style="color:#323232;">) </span><span style="color:#0086b3;">1</span><span style="color:#323232;">,
</span><span style="font-weight:bold;color:#a71d5d;">in</span><span style="color:#323232;">(</span><span style="color:#183691;">"rsi"</span><span style="color:#323232;">) text_ptr,
</span><span style="font-weight:bold;color:#a71d5d;">in</span><span style="color:#323232;">(</span><span style="color:#183691;">"rdx"</span><span style="color:#323232;">) text_size,
</span><span style="color:#323232;">
</span><span style="color:#323232;">)
</span>

(“so many” was inappropriate, sorry.)

TadoTheRustacean OP ,

I am hopeless at getting the text_ptr simpler than i64::from_str_radix(&format!(“{:p}”, my_string)[2…], 16).unwrap(); How can i get it the normal way?

Speiser0 ,

Just use str::as_ptr().

Here’s an example (disclaimer: I haven’t used inline asm in rust before, expect issues): godbolt.org/z/sczYGe96f

Crow , in Hobbyte
@Crow@lemmy.world avatar

How about a hobnibble?

zqwzzle ,

But what about second hobnibble?

canihasaccount , in Hobbyte

But a byte is 8 bits, not the other way around

tkk13909 ,

What do you mean? The meme has 8 hobbits which make a hobbyte

canihasaccount ,

I interpreted it as showing that 8 hobbytes were equivalent to a hobbit. I didn’t see that it could be interpreted as saying each little frodo picture under the hobbyte was a hobbit until your comment.

remotelove ,

It almost confused me at first as well. You are not alone. :)

tkk13909 ,

I see your confusion. Hope I cleared it up a bit :)

OneCardboardBox , in Hobbyte

I like my bag-endian architectures

LazaroFilm , in Hobbyte
@LazaroFilm@lemmy.world avatar

The tetrahobbit is only just a few decades away.

irdc , in Hobbyte

So the Fellowship of the Ring was made up of an elf, a dwarf, two humans, a maia and one hobnibble?

Poggervania ,
@Poggervania@kbin.social avatar

Thorin and Company were running with 1Hb across 3 movies while The Fellowship ran with 4Hb across 3 movies.

So we could theoretically say The Hobbit movies sucked because they were bottlenecking their performance due to not downloading having more Hb per movie.

irdc ,

Yeah, hobbit-serial architectures lack performance.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines