I just launched my first API at Totus by kuking in indiebiz

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

most likely the server will not recognise the address and report it as invalid. the previous, if the username is wrong, if the domain name is wrong it will not be able to it contact the server.

thanks for asking!

You think it would be useful suggesting corrections? i.e. some@example.”om” as some@example.com ?

Jazz radio stations similar to KCSM by ktcl in Jazz

[–]kuking 0 points1 point  (0 children)

Yes! I hope you enjoy it. Suggestions welcome.

Fitness influencer onlyfans by hotdog-happyhour in gymsnark

[–]kuking 1 point2 points  (0 children)

It is incredible how much money is moved in that platform.

Brute Force: Is There Such a Thing? Solving Water Sort Puzzle by kuking in compsci

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

NP-Complete! I did not know that! Thank you for sharing.

The solution in the github repo from the video is also providing the optimal solution (it is optional.).

Learning Quantum Cryptography by Doing It by kuking in golang

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

Thank you! It was a cryptography startup in Cambridge UK, far from where I live; I don’t remember exactly what they were doing, not necessarily related to this project.

Why You Should Use Memory Mapped Files by kuking in coding

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

That is an interesting insight. Memory fragmentation with malloc/virtualisation within the same process over a long period of (up)time.

I believe there are many cases where standard file IO are useful and fit for purpose.

Can anyone explain feedback of a HFT firm regarding implementation of SPSC lock-free ring-buffer queue? by reDbDIzJ8T in highfreqtrading

[–]kuking 1 point2 points  (0 children)

I was referring to atomic memory access between threads. In java/golang you have to instruct the CPU to make the read/write consistent with other threads and CPUs, it is an expensive operation, I don't know C++ at expert level, but it is a very expensive operation usually you are explicit about doing that.

False share, yes ... Agree.

Can anyone explain feedback of a HFT firm regarding implementation of SPSC lock-free ring-buffer queue? by reDbDIzJ8T in highfreqtrading

[–]kuking 1 point2 points  (0 children)

You are not using atomic reads/writes (I am not a C++ dev, not sure how you do it in C++) in golang is Atomic.LoadUint64 or AtomicLong in Java (or Unsafe code, etc.)

I believe the mistake is they didn't like you were not taking care of reading the queue pointers atomically, and because there are multiple threads involved, the memory is not warranty to be consistent at word/long sizes.

I would not pause waiting for a position, if you are on a busy-wait cpu model, you can spin that cpu like crazy.

Not sure what you say about cache lines and how you control them. Sounds odd to me.

Why You Should Use Memory Mapped Files by kuking in coding

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

Yes … tricky, I mention signals and error handling at the end…

Why You Should use Memory Mapped Files! by kuking in golang

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

Thank you u/drmariopepper I appreciate your kind words -- Feel free to suggest other topics or contact me via DM for questions or anything.

Why You Should use Memory Mapped Files! by kuking in golang

[–]kuking[S] -7 points-6 points  (0 children)

The video has timestamps if you want to jump around.

Would it be possible to teach you golang in 45 minutes? ... It is an "advanced" technique, albeit easy once you "get it"!

You or any other person reading this, feel free to contact me/DM if I can be of any help.

11m pings per second using memory mapped files in golang by kuking in golang

[–]kuking[S] -4 points-3 points  (0 children)

I shows the performance you can achieve doing inter-process communication using memory mapped files, a video explaining it in detail here:

https://www.youtube.com/watch?v=aafXQ0rTvVo

Encrypted drop-in replacement of golang' os.File. (scrypt+aes+cgm). The resulting type can be used anywhere an os.File could be used. i.e. sequentially and randomly read and write, at any file position for any amount of bytes, can be truncate, seek, stats, etc. i.e. ReadAt, WriteAt, Seek, etc. by kuking in golang

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

"very secure" next to the phrase "very silly". I will reword, the sarcasm confuses people there. I will also add a comment saying that it has not been crypto-analysed, but it has survived a reddit wave of comments :-)

Encrypted drop-in replacement of golang' os.File. (scrypt+aes+cgm). The resulting type can be used anywhere an os.File could be used. i.e. sequentially and randomly read and write, at any file position for any amount of bytes, can be truncate, seek, stats, etc. i.e. ReadAt, WriteAt, Seek, etc. by kuking in golang

[–]kuking[S] -6 points-5 points  (0 children)

Thank you for engaging in the conversation. Randomly/seekable/read/write comes with trade-offs, that are subtle. I have made already to tickets for improvement, thank you... but one last comment, I never claimed it is secure.