Hyper-Threading and C++ parallel computing

if my cpu has hyperthreading (HT)capability(one physical gives two logical threads), when planning for memory locality should i simply divide the thread private memory capacity(L1 cache, and registers) by two? are there further implications? or should i simply run my cpp parallel program with no two threads coming from a same core( is there a way to run the program switching off HT or should i switch off HT in bios when booting my computer)

to consider a concrete example, if i do parallelized tiled matrix multiplication, and i intend to fit my matrix tiles into registers private to a core, how to do that when my cpu has HT? should i simply divide the capacity of registers private to a core by two?

reddit.com
u/OkEmu7082 — 7 hours ago

which is closer to rust trait? CRTP or template + concept or something else

the stateless ABC interface is similar to rust trait in the sense that it allows default behavior in base class by non pure virtual functions, but it is run time polymorphism only. the template + concept does not seem to allow default behavior in "base type"

in modern cpp, how to use boiler plates to get as close as possible to Rust's traits, which is like a stateless ABC interface but is compile time polymorphism?

reddit.com
u/OkEmu7082 — 3 days ago

U.S. carrier's international roaming and the GFW

is the simplest solution to have internet access unrestricted by the GFW in China just to purchase international data with my current US carrier?

it seems very few people mention this. is it because it will not work? i understand the price is high, but i only need it for occasional email checking and US banking app and social media

reddit.com
u/OkEmu7082 — 5 days ago

U.S. carrier's international roaming and the GFW

is the simplest solution to have internet access unrestricted by the GFW in China just to purchase international data with my current US carrier?

it seems very few people mention this. is it because it will not work? i understand the price is high, but i only need it for occasional email checking and US banking app and social media

reddit.com
u/OkEmu7082 — 5 days ago
▲ 7 r/eSIMs

esim and the china great firewall

can esim be used to make sure that my network will not be affected by the great firewall in china?if not what is commonly used for this purpose?

reddit.com
u/OkEmu7082 — 6 days ago

the equivalence of EOM-CC and LR-CC

how to precisely understand the basic reason behind EOMCC and LRCC giving the same result?

the CIS is a CI formalism, the TDHF is a response formalism, also they are both based on HF, but they give different results, why CC's exponential anzatz bring the CI and LR into equivalence?

is it like, in linear algebra equivalent to a type of operator whose next eigen vector can be expressed as R acting on the previous one?

what are the other methods that preserve this equivalence, CC2,CC3, ADC?

any recommendation on must read papers about it and a summary of salient point is greatly appreciated

reddit.com
u/OkEmu7082 — 10 days ago

Verlustvortrag for doing a second Master's in Germany

i hear if i do a secodary master in germany and later work in Germany, costs related to study can be used to cancel income tax

if my program charges tuition, what should i do to reserve this option?

does it also cover the cost related to dorm or renting apartment/hostel near the uni for studying?

do those all apply to non EU international students?

reddit.com
u/OkEmu7082 — 11 days ago

is "ai will replace software engineers" nothing but a wide spread noise and an excuse tech companies use to lay off people?

i think so for several reasons

  1. LLMs are nothing but a more sophisticated linear regression model, they rely on empirical fitting and are intrinsically bad at tasks that require first principle derivation, in practice, ai assistant is effective only at low level coding tasks like filling a function implementation when i lay down a function signiture, writing tests and finding bugs, for high level design choices and some performance optimizations that require first principle reasoning it still struggles.

2 the ai tools have been heavily subsidized in the past, because those ai firms are competing for market shares, when this is over and the token price come back to the real level, the market will realize for many tasks, hiring a live human is cheaper than the token cost

what do you think?

reddit.com
u/OkEmu7082 — 13 days ago

compact and quiet home btc miner

what is the best home miner in terms of quietness (<70dB) and hash rate/size ratio?

reddit.com
u/OkEmu7082 — 13 days ago

how does the stalker manage to use a different phone number every time

i am heavily targeted by a stalker. he keeps using different phone numbers to call me and send me messages. (i know it is him because i have the context and there is a pattern, he either call and hang up when i pick up, or send some thing to indicate that he is still spying on me and knows what i am up to recently)

how does the stalker manage to use so many phone numbers? how to gather more evidence to convince the police that it is from the same person, not random events

reddit.com
u/OkEmu7082 — 20 days ago

Rooted Pixel 1: How can I record telephone calls?

i have a rooted google pixel1. i am interested in call recording

my understanding is that a call consists of an uplink stream (my voice) and a downlink stream (the remote party's voice). with root privilege, is it possible to directly capture both at the Android audio stack?

is there any existing app that works in a similar principle that works on pixel 1?

Edit : this is for combating a stalker and recording evidence

reddit.com
u/OkEmu7082 — 21 days ago

Rooted Pixel 1: How can I record telephone calls?

i have a rooted google pixel1. i am interested in call recording

my understanding is that a call consists of an uplink stream (my voice) and a downlink stream (the remote party's voice). with root privilege, is it possible to directly capture both at the Android audio stack?

is there any existing app that works in a similar principle that works on pixel 1?

Edit : this is for combating a stalker and recording evidence

reddit.com
u/OkEmu7082 — 21 days ago

do you avoid doing any ai interviews when applying to jobs?

i hear ai interviews are used to farm data out of applicants with no intention to recruit

Edit: does anyone ever get hired with a recruitment process with one round done completely with an ai interviewer

reddit.com
u/OkEmu7082 — 23 days ago

Finding the most "forward-looking" linear combination of a panel of financial time series

suppose i have a matrix whose columns are time series of historical economic data, what is the method to find the linear combination of some columns that is the most forward looking one?

for example the 30y and 10 y us treasury yields are two columns, and the 30y-10y spread usually leads some change in economic growth, fed fund rate and some commodity prices which are other columns in the matrix

Edit: the expected output of this analysis is, like the one of an eigen value decomposition, a matrix of linear combination coeffs and a matrix of the relative leading/lagging time of this combo compared with the rest

reddit.com
u/OkEmu7082 — 23 days ago
▲ 0 r/quant

Finding the most "forward-looking" linear combination of a panel of financial time series

suppose i have a matrix whose columns are time series of historical economic data, what is the method to find the linear combination of some columns that is the most forward looking one?

for example the 30y and 10 y us treasury yields are two columns, and the 30y-10y spread usually leads some change in economic growth, fed fund rate and some commodity prices which are other columns in the matrix

Edit: the expected output of this analysis is, like the one of an eigen value decomposition, a matrix of linear combination coeffs and a matrix of the relative leading/lagging time of this combo compared with the rest

reddit.com
u/OkEmu7082 — 23 days ago
▲ 12 r/bonds

the 30y-10y yield curve and btc price

in Feb 2021 the 30y-10y topped, btc also hit a local top shortly afterwards

in Oct 2022 the 30y-10y bottomed, btc bottomed in Nov

in Sep last year the 30t-10y topped, btc also topped out in Oct

what do you think is the reason behind this correlation

reddit.com
u/OkEmu7082 — 30 days ago

how to handle stalking from narc parents?

my parents keep using different social media accounts and phone number to stalk me. they manage to keep it at the level so that it is only obvious to me what's going on, such as when i use my new phone number to contact one of their flying monkeys, i immediately start to receive similar messages with that number. they will either send me some random advertisement, shopping links or something to show they are still spying on me and are aware of what i am up to very recently.

have you been through something similar? what can i do beyond just ignoring them, like filing a police complaint effectively

reddit.com
u/OkEmu7082 — 1 month ago

how to use template to abstract a tensor of unknown rank and dimension at each rank?

template &lt;typename T, std::size_t N, std::size_t M&gt;this works perfectly for a matrix since it is a fixed rank 2 tensor. one only has to determine the dimension of each rank

but what about a tensor whose rank is to be determined? is it possible to abstract a tensor so that i can use it as Tensor&lt;double, 2,3,4&gt; t, meaning its rank is 3 and first rank is of dim 2 and second 3, third 4?

i am thinking about how to create an tensor interface that decouples the specific tensor library used from the high level logic, and that has a tensor contraction function like Y("i,j") = T("i,k,j,l").contract(X("k,l")) wired to each specific tensor library, how to do that

reddit.com
u/OkEmu7082 — 1 month ago

Realistic leak paths of a compromised iPad

The iPad was originally given to me as a gift by the same person who I now believe may be monitoring or obtaining information about me. I understand that this does not prove the iPad is compromised, but it makes the device’s provenance suspicious enough that I want to treat it as a possible central leak point.

The reason I suspect this iPad is that the person appears to know information that seems connected to activity on this device, including:

  • shopping activity or order/search history from shopping apps used on the iPad
  • app usage patterns or approximate app usage time
  • websites I visited
  • social media apps chat history and friends added

I use to experience huge data usage when I use mobile hotspot on this iPad. What are the possible leak paths in this case?

reddit.com
u/OkEmu7082 — 2 months ago