Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 5y ago · link · parent

Because the fittest people with an expressed SRY gene (aka "biologically male") are generally 10-15% better at sports than those without it (aka "biologically female") so if you allow SRY-expressing MtF transgender people to compete in the female category against non-SRY cisgender female people (rather than only letting them competing in the male category), and there are enough of them at top levels, no cisgender woman will ever win anything.

Also, this incentivizes male athletes that can't win medals but are close to take hormone replacement theory solely so they can compete in the much easier female category and win medals, which runs in the same arguments against doping.

On the other hand, if you don't, then MtF transgender people are not likely to win anything, since hormone replacement therapy reduces performance (but not enough to match non-SRY people).

comment 5y ago · link · parent

The document says that the encoding is 11 bits for two characters, which means that Base45 plus that encoding is very efficient, since 45^2 / 2^11 = 0.988, so only 1.2% of the capacity is wasted.

comment 5y ago · link · parent

There seems to be a sizeable number of people who don't want to vaccinate, plus children under 12 won't be, and also the pandemic will survive in developing countries and travelers coming from them for a while.

So I think the risk of getting infected in fall may well be significant enough to make taking the vaccine a good decision.

Plus of course by vaccinating you no longer need to worry about minimizing infection risk, you don't need to get fake certificates to access things that are restricted to vaccinated people, you are free to travel to developing countries without risk.

Also if you don't vaccinate now and the pandemic somehow has a resurgence you will have to rush to vaccinate then and stay at least month in full isolation while others who are vaccinated are freely going to events instead of doing the isolation now that events haven't fully resumed yet.

comment 5y ago · link · parent

Of course competent programmers using the top K bits of the pointer would make sure that the kernel and memory allocator operate so that they don't allocate memory outside a (64 - K)-bit address space, regardless of what the CPU supports (e.g. Linux mmap as one would expect won't allocate beyond 2^48 unless explicitly requested).

And obviously any intelligent CPU architect, if they make a CPU that masks the upper bits, they would make the number of bits that gets masked configurable per-process and not dependent on the maximum virtual address space supported by the CPU.

comment 5y ago · link · parent

You could also add a heater.

comment 5y ago · link · parent

It's a mistake, it's supposed to be a "=".

comment 5y ago · link · parent

You have to be a terrible programmer to even consider using a base 10 logarithm for this.

Their proposed improvement is also terrible, since it divides multiple times unnecessary, and checks for negativity multiple times unnecessarily.

The proper simple solution is of course a handwritten binary search with if-else blocks that starts with the most likely range, annotated with "likely" annotations, and a single division.

If this is the main task of the program for a while, and thus a large fraction of the cache can be dedicated to it, then solutions with large lookup tables are worth trying (obviously optimizing string formatting is also essential in this case).

This is why software is so often broken, there's a lot of incompetent people programming.

comment 5y ago · link · parent

There is no special treatment of main in the major C compilers, the only "magic" thing the compiler does is including the CRT startup object file in the link, which defines _start as a function ultimately calling main, and having the default linker script set the address of "_start" as the executable entry point.

You can pass -nostdlib to gcc to disable linking the CRT startup object (or use ld directly) and you can pass --default-script /dev/null to ld to disable the linker script.

There is no need to declare main or check arguments or return types since in C arguments are both pushed and popped by the caller and the language provides no typing guarantees and thus there is no problem in calling functions with mismatched argument or return type declarations.

comment 5y ago · link · parent

1. Probably not in general? Maybe with a vertical <input type="range"> for each item and a lot of server-generated CSS hackery, for small lists?

2. Use ARIA

3. Use position: absolute?

4. Create it with position: absolute/relative and use CSS :hover selector to show it (or see #5 for explicit open/close)

5. Use <details> or a checkbox along with the appropriate CSS

comment 5y ago · link · parent

Of course non-pure Lisps and JavaScript pretty much only differ in syntax, so there is no "new interaction possible".

They are more powerful than the basic formula languages in most spreadsheet software, which is why spreadsheet software usually offers the ability to write custom functions using traditional programming languages.

comment 5y ago · link · parent

That's equivalent to !0 << popcount(!(x & mask)) (where left shift must saturate and not truncate the shift count, otherwise you need to special case x = 0) and seems much less useful than popcount.

comment 5y ago · link · parent

You can easily use another platform instead of Fanhouse (users can easily go on another website or app).

You can't easily use another delivery method for apps to iPhone users (that would require iPhone users to also buy and carry an Android device, which is a massive hassle).

comment 5y ago · link · parent

They have a monopoly on devices running iOS apps, and a monopoly on channels to deliver mobile software to anyone who uses an iPhone (i.e. either their App Store or Safari).

comment 5y ago · link · parent

I hope Mozilla reverts this absurd change as soon as possible, or at least maintains the previous UI indefinitely.

comment 5y ago · link · parent

Seems of limited use considering Unreal Engine's source code is available, and UE is probably a better engine and also legal to use in your games (albeit only for a percent of royalties).

comment 5y ago · link · parent

There must be a way to alter a core's instruction pointer from another core or from hardware to support killing processes running untrusted machine code, and to support pre-emptive multithreading without needing to have compilers add a check for preemption on all backward branches and calls.

These features are very worth the hassle of providing this capability (which is known as "IPI"s), and once you have that hardware interrupts become pretty much free to support by using the same capability and the OS/user can then decide whether to dedicate a core, to affinity them to a core, to load balance them among all cores or to disable the interrupts and poll instead.

comment 5y ago · link · parent

That doesn't prevent extraction by someone with supervisor/hypervisor access (so if Elcomsoft can't extract it it's only because they are lazy), it just tries to make it less likely that an attacker can extract it from a locked machine they have physical access to (by rebooting into a boot image of their choice and reading the RAM, the so-called "cold boot" attack).

It's mathematically impossible to prevent key extraction unless you put the key in an HSM (the TPM might function as such, but it may not have good performance) and use that for decryption (the most you can do is make the key larger up to the amount of RAM you have, at the costing of wasting RAM).

Even if you use an HSM, the malware can just extract the data itself or even on-the-fly decrypt the disk with the HSM and re-encrypt with a known key and then exfiltrate the known key, so all this does is make the attack slower since you need to read/write the whole disk.

comment 5y ago · link · parent

The article writer is quite ignorant.

COM is not obsolete at all, it's the main way Windows APIs have been and are provided from the release of DirectX until now, where it underlies the current WinRT API.

comment 5y ago · link · parent

You should not do that since there is no reason to disallow the user from doing what they want.

But if you really want it, writing a custom boot ROM and OS is probably the only way you can have an actually secure system (you might need a custom CPU as well).

Given the lack of skill and discipline of most programmers the whole TPM/secure-boot/UEFI/grub/Linux/dm-verity stack is likely full of holes, so just the assuming that it works as you'd expect will probably be disappointing.

comment 5y ago · link · parent

This is one the things that it's surprising that it wasn't available before.

As far as I can tell this architecture was possible at least starting from the introduction of DX11 hardware more than 10 years ago, and it seems to be the most straightforward way of rendering a realistic 3D scene.

comment 5y ago · link · parent

You can put a 16-bit stack pointer in the zeropage and address local variables with the (abs),Y address mode after having loaded the local variable index in Y with LDY #imm. The kernel needs to save the zeropage stack pointer on thread context switch, and of course this requires hardware zeropage mapping to work on SMP systems (not sure if 6502 SMP exists).

If you want more than 256 bytes of local variables you will have to setup more offset copies of the stack pointer in the zero page first.

Also most variables can be stored in the zeropage as caller-saved pseudo-registers and only spilled on the stack as needed.

If you don't have threads or recursion then assigning fixed addresses is even better.

It may however overall be much more space-efficient to implement a bytecode emulator for a proper 32/64-bit instruction set instead of trying to generate 6502 code.

comment 5y ago · link · parent

Can anybody comment on whether this actually works properly and does what it claims to do?

comment 5y ago · link · parent

Yeah, they are redacting in the middle of text in a variable-sized font!

comment 5y ago · link · parent

100mbps is at or below entry level for fiber in major cities, and outside major cities it's what Starlink claims to provide, and also in the VDSL and 4G range.

A "fantastic" customer connection speed currently would be 2.5gbps or 10gbps.

comment 5y ago · link · parent

A contemporary broadband connection can manage way more than 100 simultaneous characters.

You only need to send an updated position and direction on every frame, which can fit in 10 bytes (16-bit screen space fixed point coordinates, 3 position coordinates + 1 orientation + one 16-bit animation/action ID).

With a 100mbps connection you can send 160 KB per frame at 60fps and thus support 16K characters.

comment 5y ago · link · parent

I'm surprised that either anyone actually uses such an OS (beyond toying with it), or that there are enough people willing to pay without using the OS.

What's the explanation for this?

comment 5y ago · link · parent

The basics are essential.

If e.g. you don't know what an hashmap or a balanced search tree is, or that you can find common items between two sequences or find a shortest path in a graph with non-negative edges in O(n log n), or that you can't (as far as we know) solve SAT, max-clique or subset-sum in polynomial time then you should not be programming software to be used by others.

Advanced algorithm design skill however is generally only useful if you are doing specifically algorithmic work.

comment 5y ago · link · parent

That seems worse than using the common C/Java/JavaScript syntax for operators and function calls, that can be easily parsed with any JavaScript parser.

comment 5y ago · link · parent

This will not happen as long as Apple's cut percentage is lower than the percentage of users that will give up or not download the app when asked for their credit card in-app.

Obviously any reasonable Apple's cut will satisfy this requirement.

comment 5y ago · link · parent

The issue is about app developers who don't get to choose the phone that users have.
1
161718
51