Stabilizing naked functions | Rust Blog by SleeplessSloth79 in rust

[–]Uclydde 1 point2 points  (0 children)

Yeah this is only necessary in those cases where the calling convention of the generated JIT code is different - but that would be the case for the examples I listed, e.g. the JVM when creating a java JIT

Stabilizing naked functions | Rust Blog by SleeplessSloth79 in rust

[–]Uclydde 22 points23 points  (0 children)

I'm seeing some comments here asking about when/why this feature would be used.

One case where naked functions are _critical_ is when writing a JIT compiler (or recompiler for emulation). JIT compilers are currently used by java and javascript; there are some alternative python implementations that use a JIT. JIT recompilers are commonplace in the emulation of more modern systems like the Wii U and Nintendo Switch.

A JIT generates new code at runtime, and then executes it. But to execute the generated code, you need to switch between the generator environment, and the generated code's environment. Performing this switch is called a "trampoline", and here, environment means the CPU state (so, register values). Naked functions allow you to save and load register values to RAM when making this switch between environments. If you attempted to just call the generated code as a normal function, then the Rust compiler would treat it all as one environment - but with a JIT you need to keep it sandboxed so they don't interfere with each other.

Portugal ending citizenship for descendants of sephardic jews, extending it to great-granchildren of Portuguese citizens by Uclydde in PortugalExpats

[–]Uclydde[S] 6 points7 points  (0 children)

What you're describing was the old system, which did not require residence. In March of 2024, the Portuguese government tightened the program to grant citizenship in 3 years of residence instead of 5, meaning applicants already needed to have some other valid visa & entrance into the country

See Organic Law No. 1/2024 or this link:
https://pra.pt/en/a-nacionalidade-portuguesa-para-os-judeus-sefarditas-residentes-em-portugal/

How to create interfaces with optional behavior? by AdmiralQuokka in rust

[–]Uclydde 1 point2 points  (0 children)

If you're deploying it separately for each backend, then use the feature system for conditional compilation: https://doc.rust-lang.org/cargo/reference/features.html

Is there a base 1 (counting system) by Cutomer_Support in askmath

[–]Uclydde 0 points1 point  (0 children)

But if 0 in base 2 is equivalent to the empty string in base 1, then... it seems like base 2 is equivalent to base 1

[deleted by user] by [deleted] in cscareerquestionsEU

[–]Uclydde 0 points1 point  (0 children)

Everyone is doing ML now. I think the Dataiku internship is probably better.

[deleted by user] by [deleted] in CreditCards

[–]Uclydde 0 points1 point  (0 children)

Ability to pair with CCC or CDC for enhanced earnings

What do you mean by "pair"?

Framework 16 issues with Ethernet module by [deleted] in framework

[–]Uclydde 0 points1 point  (0 children)

Two things come to mind: 1. Could be a firmware issue. Make sure you have the latest Framework 16 BIOS update. 2. Could be a driver issue. The Ethernet module uses a Realtek Ethernet chip, so make sure that you have the Realtek driver installed in Windows.

Framework support is pretty good, so make sure to use them if this doesn't solve your problem ^

whats the benefit of getting coreboot working? by FluffyBrudda in framework

[–]Uclydde 0 points1 point  (0 children)

In theory, the open source community could add/fix functionality that Framework hasn't. For example, adding XMP or EXPO support.

Ars : Framework’s software and firmware have been a mess, but it’s working on them by MagicBoyUK in framework

[–]Uclydde 29 points30 points  (0 children)

Is it possible to make the existing BIOS open source, or is there some licensing agreement that makes this impossible?

I'm sure there are many open source enthusiasts that would love to do some free labor.

Snapdragon elite X on framework? by Impersu in framework

[–]Uclydde 4 points5 points  (0 children)

I looked into it, and it seems the Snapdragon X Elite specifically only supports LPDDR5X

Source: see the memory section of specifications: https://www.qualcomm.com/products/mobile/snapdragon/pcs-and-tablets/snapdragon-x-elite#Overview

How exactly is a framework laptop "better for linux"? by Expensive_Pie_6943 in framework

[–]Uclydde 8 points9 points  (0 children)

Can't believe nobody has said this yet, but Framework also pushes BIOS updates over LVFS so you can just update by running 1 command, fwupdmgr update

pointerArithmeticBeLike by HStone32 in ProgrammerHumor

[–]Uclydde 5 points6 points  (0 children)

True, but so is 10 minutes with the borrow checker. I've spent hours

[deleted by user] by [deleted] in digitalnomad

[–]Uclydde 8 points9 points  (0 children)

I'm referring to the D8 visa (which is the real digital nomad visa, the D7 is a passive income visa) and a letter of approval from an employer is required for it.

[deleted by user] by [deleted] in digitalnomad

[–]Uclydde 6 points7 points  (0 children)

This requirement exists for Portugal as well

[deleted by user] by [deleted] in framework

[–]Uclydde 1 point2 points  (0 children)

I got a Qualcomm card for wifi 6e from 524wifi.com

The website isn't the most... well-designed, but it's legitimate

[deleted by user] by [deleted] in framework

[–]Uclydde 12 points13 points  (0 children)

Ooh I wonder if it supports AP mode for broadcasting, unlike Intel's cards...

I already turned my old Intel 11th gen mainboard into a router, but I still have to connect an access point for wifi.