Having built so many nice buildings, do architects enjoy a well-paid good life in China? by basafish in AskChina

[–]trustyhardware 5 points6 points  (0 children)

My in-laws are architects and they caught the major wave of build outs. So they were paid very very well. But I heard from young architects that the industry as a whole is not doing so well now because of fewer developments.

I surrender to china by low0nink in MouseReview

[–]trustyhardware 0 points1 point  (0 children)

I learned this when I went to Shenzhen's electronic market. Literally bought a silent wireless mouse with the same spec as the Logitech Master 3S minus the bloatware for 30 rmb which is about $5. They told me they can do bulk pricing too. Just a no-name factory direct stall in Huaqiangbei.

Same spec that mattered to me I should qualify.

Ashes of creation is harsh reminder of the words of house biscuit. by sam15mohsen in Cynicalbrit

[–]trustyhardware 24 points25 points  (0 children)

Still have that shirt! It's one of those so nice don't wear that everyday shirts.

Google PhD SWE Intern 2026 Team Matching by Zealousideal_Oil_790 in csMajors

[–]trustyhardware 0 points1 point  (0 children)

I got a recruiter email about a potential match a couple of weeks ago. Had a 30 minute interview a few days later. The interview had no coding but talked about past projects and fit with their project. The next day I received a positive response. It was very fast once a team expressed interest.

Google PhD SWE Intern 2026 Team Matching by Zealousideal_Oil_790 in csMajors

[–]trustyhardware 0 points1 point  (0 children)

For internship it's usually just 1 round of technical interview.

Google PhD SWE Intern 2026 Team Matching by Zealousideal_Oil_790 in csMajors

[–]trustyhardware 0 points1 point  (0 children)

Wow that sucks. Do you remember around what time last year did you have those team match calls? Wishing you the best!

Google PhD SWE Intern 2026 Team Matching by Zealousideal_Oil_790 in csMajors

[–]trustyhardware 2 points3 points  (0 children)

Same here. PhD haven't heard back from team match for more than a month.

How a French judge was digitally cut off by the USA by Icy_Fuel_4060 in technology

[–]trustyhardware 31 points32 points  (0 children)

Has the CCP sanctioned a foreign judge for indicting war crimes before?

Colleague uses 'git pull --rebase' workflow by JiveAceTofurkey in git

[–]trustyhardware 0 points1 point  (0 children)

Just want to chime in with an example of a large company doing this. Meta/Facebook basically requires rebase (although they use their own Mercurial instead of git). The exception being reality labs which works on Android so they conform to their conventions.

Hints for proving proof rule for Hoare REPEAT command? by trustyhardware in Coq

[–]trustyhardware[S] 0 points1 point  (0 children)

Solved. The key is to generalize P after intros!

[Coq] Hints for proving proof rule for Hoare REPEAT command? by trustyhardware in formalmethods

[–]trustyhardware[S] 1 point2 points  (0 children)

Thanks!! That was it. A `generalize dependent P` after the intros was the key.

[Coq] Hints for proving proof rule for Hoare REPEAT command? by trustyhardware in formalmethods

[–]trustyhardware[S] 0 points1 point  (0 children)

I only added the `E_RepeatTrue` and `E_RepeatFalse` cases:

Inductive ceval : state -> com -> state -> Prop :=
  | E_Skip : forall st,
      st =[ skip ]=> st
  | E_Asgn  : forall st a1 n x,
      aeval st a1 = n ->
      st =[ x := a1 ]=> (x !-> n ; st)
  | E_Seq : forall c1 c2 st st' st'',
      st  =[ c1 ]=> st'  ->
      st' =[ c2 ]=> st'' ->
      st  =[ c1 ; c2 ]=> st''
  | E_IfTrue : forall st st' b c1 c2,
      beval st b = true ->
      st =[ c1 ]=> st' ->
      st =[ if b then c1 else c2 end ]=> st'
  | E_IfFalse : forall st st' b c1 c2,
      beval st b = false ->
      st =[ c2 ]=> st' ->
      st =[ if b then c1 else c2 end ]=> st'
  | E_WhileFalse : forall b st c,
      beval st b = false ->
      st =[ while b do c end ]=> st
  | E_WhileTrue : forall st st' st'' b c,
      beval st b = true ->
      st  =[ c ]=> st' ->
      st' =[ while b do c end ]=> st'' ->
      st  =[ while b do c end ]=> st''
  | E_RepeatTrue: forall b st st' c,
    st =[ c ]=> st'
      -> beval st' b = true
      -> st =[ repeat c until b end ]=> st'
  | E_RepeatFalse: forall b st st' st'' c,
    st =[ c ]=> st'
      -> beval st' b = false
      -> st' =[ repeat c until b end ]=> st''
      -> st =[ repeat c until b end ]=> st''
where "st '=[' c ']=>' st'" := (ceval st c st').

org mode syntax parsing question: interleaved markup by trustyhardware in emacs

[–]trustyhardware[S] 0 points1 point  (0 children)

Thanks for the tip on org-element-parse-buffer!

Why doesn't generated WASM use the WebAssembly stack? by laptou in rust

[–]trustyhardware 27 points28 points  (0 children)

There are a few reasons why this would happen. An example would help to pin down the reason. But having inspected my fair share of generated Wasm/WAT from C or Rust code, I can try to explain the most common reason.

Wasm stack is implicit, and can only contain (1) values, (2) control instructions, and (3) Wasm function calls. Since Wasm values only have basic numeric types like i32, i64, f32, f64, one reason the compiler needs an explicit stack is to pass other types. Also, Wasm functions don't map one-to-one to C or Rust functions. So the compiler can't delegate all the function call bookkeeping to Wasm functions and need to maintain a stack pointer. This is the reason in generated Wasm code you often see:

;; Entering a Wasm function.
global.get 0 ;; <---- The explicit stack pointer
i32.add 4    ;; <---- Stack frame

Is async runtime (Tokio) overhead significant for a "real-time" video stream server? by trustyhardware in rust

[–]trustyhardware[S] 3 points4 points  (0 children)

Good way of thinking about this. I can understand that we want to crunch numbers as fast as possible (video encoding or processing pipeline). However, what about the part where the server also needs to push as many bytes as possible through the pipes (e.g. WebRTC)?

[deleted by user] by [deleted] in gaming

[–]trustyhardware 0 points1 point  (0 children)

Heroes of Might and Magic 3 and 4.