News for hackers. Stuff that matters.

sild

Re:All public GitHub code was used in training Copilot on Friday July 09, 2021 @05:24AM (#27781888)
If you are copy and pasting code from open source projects into your own project, then I think that is more likely to be considered copyright infringement than fair use. Fair use is generally for things like criticism, parody, teaching etc. Obviously this kind of thing would need to be judged on a case-by-case basis, but I think you are on shaky ground here.
Re:Sentinels Can Be Faster on Wednesday September 09, 2020 @04:28PM (#24425560)
I put the benchmark into quick-bench but could not replicate the 40% result. The sentinel version was faster but only slightly.

https://quick-bench.com/q/314Z81FskTlcDqMCUHFVhWmDz8Q

Update 1: After moving some constants around, I get the 40% result:

https://quick-bench.com/q/lPrpQTAyDQuOoKS9MBWCTBXk1TE

No idea why it made such a big difference to the benchmark.

Update 2: If the test order is reversed, the result goes back to being only slightly faster for the sentinel version:

https://quick-bench.com/q/Ds7aqe5-6md_tTPndOK54ltYZmE

Re:Malloc Geiger Counter on Saturday August 29, 2020 @08:25AM (#24315621)
The snoop command on SunOS and IRIX had it in the 90s too.
Re:The Linux Backdoor Attempt of 2003 (2013) on Monday August 10, 2020 @04:26AM (#24106863)
If you are using gcc you can use the -Wparentheses flag to turn on warnings for this: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#inde...
Re:Atlassian tells employees they can work from home forever on Saturday August 08, 2020 @08:14AM (#24091044)
I once worked in an office with fake windows---just some blinds hung over a small recess in the wall.

When our team first arrived in the office, a colleague walked over to them and said something along the lines of `let's get some sunlight in here' before opening them to reveal the deception.

Re:Low latency tuning guide on Sunday August 02, 2020 @07:10AM (#24027868)
This page [1] describes additional tuning parameters. In particular adjusting /proc/sys/kernel/sched_rt_runtime_us can be beneficial.

[1] https://access.redhat.com/documentation/en-us/red_hat_enterp...

Currently the page must be writeable at some point in order to create the trampoline.

A page fault is used as a way of executing the trampoline without the page having to be made executable/writable---the page fault handler recognises the page as a special trampoline page and handles the jump to the trampolines target address (which was previously registered using the new syscall).

Note that AFAICS this is unrelated to Spectre. The intended use is for constructing closures for use in FFI libraries such as libffi.

EDIT: I think I perhaps misunderstood your query---are you saying why not just make a system call where the kernel creates the page for you with the desired trampoline code and execute permissions?

Re:On Coding, Ego and Attention on Tuesday June 16, 2020 @01:16PM (#23541562)
Would you mind sharing which course you took please? It sounds very interesting.
Re:Poireau: A Sampling Allocation Debugger on Tuesday May 19, 2020 @05:40AM (#23233027)