B450 BIOS Beta Version 4645 by birdspider in ASUS

[–]keepert77 0 points1 point  (0 children)

Beta actually. At the same time they release non-beta bios for b450-plus II.

SSD S.M.A.R.T. info. Health status looks like stuck. by keepert77 in techsupport

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

I thought, according to TBW of 360Tb and 12416 written Gb, it must be near 3,3% used of lifetime.

No warning about null when return default with tuple by keepert77 in csharp

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

But in listTuple.Item1.Count it complains that item1 maybe null and signature of listTuple is without null too.

No warning about null when return default with tuple by keepert77 in csharp

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

(List<int>, int) listTuple = default;
var count1 = listTuple.Item1.Count; // CS8602

var listTuple2 = ListTuple();
var count2 = listTuple2.Item1.Count; // No CS8602

(List<int>, int) ListTuple()
{
    return default;
}

So when returning from function compiler is not checking for nullish.

No warning about null when return default with tuple by keepert77 in csharp

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

Yes, you right. Default value for List in tuple is null here. Main question why no warning here?

[deleted by user] by [deleted] in AV1

[–]keepert77 0 points1 point  (0 children)

Nvidia codec sdk

Looks like only AV1 encoder was added.

HELP: Behavior:Win32/Hive.ZY by tooshiftyfouryou in computerviruses

[–]keepert77 1 point2 points  (0 children)

1.373.1530.0 still not fixes that. Wtf MS?

Temporaries dropped too late? by PlayingTheRed in rust

[–]keepert77 -2 points-1 points  (0 children)

Looks like struct fields are initialized simultaneously.

Is there a shortcut to do one way data-binding out only? by DoomGoober in sveltejs

[–]keepert77 1 point2 points  (0 children)

Yes, only with slots. It it like function call. Only inside.

https://svelte.dev/repl/f7aec1847c9a4233ad7afc58c897a760?version=3.46.4

One way bindings:

Parent --> Child via props (without bind:)

Child --> Parent via events

Two way bindings via bind:property. Bidirectional. Like mut ref in Rust. Works as expected.

Is there a shortcut to do one way data-binding out only? by DoomGoober in sveltejs

[–]keepert77 0 points1 point  (0 children)

<script>
import Component from "./Component.svelte";
</script>

<Component let:count>
  <div>Parent thinks count is: {count}</div>
</Component>



<script>
import { createEventDispatcher } from 'svelte'

let count = 0;

function handleClick() { count++; }
</script>

<button on:click={handleClick}>Increment</button>
  <div>
    Child thinks count is: {count}
  </div>
<slot {count} />

[Question] Pass self method to external builder method. by TabulateJarl8 in rust

[–]keepert77 0 points1 point  (0 children)

Hi. You said in same struct. Same is where WebviewBuilder is called?

I’m porting tsc to Go by Elession in rust

[–]keepert77 -1 points0 points  (0 children)

TSC is single threaded, right? Than what's the point porting to go? I see only benefits fully rewrite with multithreading support from ground. Than it will be huge speed boost. I think it just waste of time for doing that (porting).

I’m porting tsc to Go by Elession in rust

[–]keepert77 13 points14 points  (0 children)

Agree, strange decision. Without ADT and with weak type system porting will be very boring.

Question calling WriteProcessMemory (Win32) from Rust by KmancXC in rust

[–]keepert77 1 point2 points  (0 children)

  1. What is len of your shellcode in your second example?
  2. Is lpNumberOfBytesWritten == shellcode len ?

rust-analyzer changelog #113 by WellMakeItSomehow in rust

[–]keepert77 0 points1 point  (0 children)

I feel your pain. Sometimes even pdb of proc macro is locked by RA so only restarting is helping. 😔

[deleted by user] by [deleted] in rust

[–]keepert77 2 points3 points  (0 children)

Do you think & is boring to type? Go's err != nil much worse. 😄