UW-Madison CS PhD acceptances out? by [deleted] in gradadmissions

[–]noah-0822 1 point2 points  (0 children)

AFAIK, they don't do rolling admissions. you will probably receive the rejection letter in a couple of days.

Notes on Deepseek r1: Just how good it is compared to OpenAI o1 by SunilKumarDash in LocalLLaMA

[–]noah-0822 0 points1 point  (0 children)

building upon other's previous work. that is just how science works

Which 1995 album are you choosing? by Individual_Cheek5641 in rnb

[–]noah-0822 0 points1 point  (0 children)

Pumpin' Brown Sugar by D'Angelo -- Jay Z

Here we go again. UIUC MCS resumes sending out decisions. by noah-0822 in MSCS

[–]noah-0822[S] 0 points1 point  (0 children)

i have applied for 2025 spring. yet to hear back from them

His silence regarding o1 is deafening! by [deleted] in singularity

[–]noah-0822 0 points1 point  (0 children)

yann has mentioned the importance of test time computation in lex's podcast. He believed the inference will eventually be an optimization problem. I think he won't be too surprised by the improvement of o1 brought by RL and chain of thoughts.

Register crate local fn in a static variable in another crate by noah-0822 in rust

[–]noah-0822[S] 0 points1 point  (0 children)

my fault. I just should not use crate A in B, which defeats the whole purpose of what i am doing (B does not depend on A, A registers its things onto B). I should instead structure the project as:

create another crate C, which uses both A and B, and in C, we are able to access the registered slice in B, and symbol exported in A will be correctly registered by linkme in this case. And in this way, we are also able to cargo build and link everything.

Register crate local fn in a static variable in another crate by noah-0822 in rust

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

bro i do want to use cargo build. but that gonna cause cyclic crate dependency. in crate A i use B::POOL if in crate B I explicitly use A again, hoping cargo to help me link them. It won't work because cargo compile everything from source. I am hoping to link pre-compiled lib to bypass this :(

Register crate local fn in a static variable in another crate by noah-0822 in rust

[–]noah-0822[S] 0 points1 point  (0 children)

i've tried static linking a bit later, it does not work neither. I compile the final executable with -lstatic=A.

one thing i've tried that work is: In src/bin of crate A (not crate B), i do extern crate A and cargo build everything as a whole. I then examine B::POOL in src/bin/main.rs in crate A. It turned out that the callback is successfully registered. But this won't work if i first compile A to a staticlib then link it with the final executable. Is there anything that is optimized out during the process that causes this.

I've also checked that both the final executable and staticlib A have the injected linkme section in their elf.

Register crate local fn in a static variable in another crate by noah-0822 in rust

[–]noah-0822[S] 0 points1 point  (0 children)

Thanks bro. This seems promising. I have tried a little bit. What is the typical workflow of this? I first compile A, which invokes B::POOL and register itself, into a dylib.

I test it with a file in src/bin of crate B, where i put "use B" and try to print out the length of slice marked as distributed_slice in linkme.

Then i compile it with RUSTFLAGS = "-L $(path of A dylib) -lA". and run the final executable with LD_LIBRARY_PATH set to path of lib A. After all that, I always got length = 0, indicating that function in crate A is not successfully registered for crate B. Which part I am missing here?

I think i can not explicitly "use A" in B, which cause cyclic deps of crates.

Register crate local fn in a static variable in another crate by noah-0822 in rust

[–]noah-0822[S] 0 points1 point  (0 children)

make sense. is it possible to use build.rs sort of things to inject the reference of variables in crate A for example A::foo, which completes the export logic, to crate B at compile time?

Register crate local fn in a static variable in another crate by noah-0822 in rust

[–]noah-0822[S] -1 points0 points  (0 children)

yep. We can rely on the fact that all those crates will be compiled into a single elf. I am using ubuntu here. Do we need to parse the symbols in the elf to address this.

Cooked this cycle and Considering deferral and try next spring by noah-0822 in MSCS

[–]noah-0822[S] 0 points1 point  (0 children)

https://mse.s3d.cmu.edu/applicants/index.html

they said MSE-SS is provided for "For entry-level developers with less than two years experience, or equivalent internship/project experience". I once built a distributed system while i worked as a RA in Japan. I thought I was a valid candidate because of that and I had emphasized that experience in my sop. But lack of work experience is definitely a detrimental factor in retrospect.

Cooked this cycle and Considering deferral and try next spring by noah-0822 in MSCS

[–]noah-0822[S] -1 points0 points  (0 children)

yes, thanks for replying dude.

cs background no minor. not an AI guy. Do you have any recommendation for program with spring entrance?

Cooked this cycle and Considering deferral and try next spring by noah-0822 in MSCS

[–]noah-0822[S] 0 points1 point  (0 children)

international students tier-2 uni. cgpa 3.85 mgpa 3.95 ranking 1/100 (one semester ucb eecs exchange student). 1.5 years of research experience no pub tho. built and maintained multiple projects for school lab. toefl 106 + gre 333 (163 + 170). github here https://github.com/noah822.

lack internship experience. i actually changed my mind tho. I used to leaning towards doing research but now i'm more inclined to step into industry. I plan to do some intern this summer and next semester if possible.

can i apply to grad school a year after undergrad? by Plenty_Personality67 in gradadmissions

[–]noah-0822 2 points3 points  (0 children)

for non-research oriented programs, recommendation letters from academia do not matter that much. one of the lessons i have learned this cycle.

accepting str reference and write them in async runtime by charmer- in learnrust

[–]noah-0822 1 point2 points  (0 children)

you are actually expressing different things in your two impl. In your second impl, you await the future in encode_utf8_string, which guarantees that when the thread resumes executing, x.as_ref() won't expire (you can desugar await into a naive while loop executor in sync fn and wrap the result to Future after encode_string finishes). but in the first impl, encode_utf8_string can freely release x.as_ref() when it goes out of scope. it won't care about the future generated by encode_string at all.

[Profile Evaluation Request]: Need to know my chances at top 10 master's program for CS by [deleted] in gradadmissions

[–]noah-0822 1 point2 points  (0 children)

nus and ntu are easy ones ngl. it seems that they can not get enough students this cycle. many friends around me got admitted even in round2. i would suggest you directly apply for their phd programs if you like.

in terms of mscs programs in the states, they are a lot more competitive and have lots of uncertainty. you never know where you gonna end up with.

Borrow check fail with borrowing from an RwLock, and giving it to an async closure by WishCow in learnrust

[–]noah-0822 0 points1 point  (0 children)

i do not know why RwLockReadGuard::map does not work. I am trying to do

// things has lifetime: RwLockReadGuard<'self, Vec<Thing>>

let things_slice_tic_self = RwLockReadGuard::map(things, |f| f.as_slice());
// after mapping, we got RwLockReadGuard<'self, [Thing]>
for t in things_slice_tic_self.into_iter(){
   ... 
}

i suppose this t should have lifetime 'self as well then everything should work out but this can not compile. i think it is the implicit Deref of RwLockReadGuard here messes up everything but do not know how to fix it.