rust on master via 🐍 v3.11.4 via 🦀 v1.70.0
❯ ./x check
Traceback (most recent call last):
File "/data1/edgar/rust/x.py", line 50, in <module>
bootstrap.main()
File "/data1/edgar/rust/src/bootstrap/bootstrap.py", line 1113, in main
bootstrap(args)
File "/data1/edgar/rust/src/bootstrap/bootstrap.py", line 1070, in bootstrap
build = RustBuild(config_toml, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data1/edgar/rust/src/bootstrap/bootstrap.py", line 505, in __init__
self.build = args.build or self.build_triple()
^^^^^^^^^^^^^^^^^^^
File "/data1/edgar/rust/src/bootstrap/bootstrap.py", line 976, in build_triple
return config or default_build_triple(self.verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data1/edgar/rust/src/bootstrap/bootstrap.py", line 259, in default_build_triple
kernel, cputype, processor = uname.decode(default_encoding).split()
^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 3)
uname -smp
$ uname -smp
Linux x86_64 unknown
.split(maxsplit=2)
-p, --processor print the processor type (non-portable)
.split(maxsplit=2)
should not cause problems AMD EPYC 7763 64-Core Processor
CEditor::m_EditBoxActive
which only works with editboxes created from the editor with CLineInput::GetActiveInput
which also works for editboxes which are created by generic UI functions, e.g. the value selector editboxes of color pickers.
Option
being involved?T
.T
.Option
being involved? CreateMessage<...>
insteadCreateMessage<...>
so they need to be declared in the same scopeCreateMessage<...>
holds a reference to an &[Attachment]
let attachments;
in the beginningmatch
, you do attachments = [your_attachment];
&attachments
to the function (edited)attachments
would be immutable no?let else
is indeed nicelet (Ok(i) | Err(i)) = [1, 2, 3].binary_search(&2);
fn f((Ok(i) | Err(i)): Result<i32, i32>) {}
match value {
Some(p @ 2 | 3 | 5 | 7) => println!("{p} is a prime"),
Some(sq @ 0 | 1 | 4 | 9) => println!("{sq} is a square"),
None => println!("nothing"),
Some(n) => println!("{n} is something else"),
}
#![deny(missing_docs)]
#![deny(warnings)]
#![deny(clippy::nursery)]
#![deny(clippy::pedantic)]
#![deny(clippy::all)]
NOMINMAX
windows.h
header thinks it's a good idea ot define min
/max
macros, breaking the c++ stdlib, among othersanyhow
btw? (edited)tokio_postgres
tokio_postgres
let Ok(msg) = msg else {
return Err(Error("CME"));
}
anyhow
btw? (edited)eyre
crate for colorful, consistent, and well formatted error reports for all kinds of errors.DATABASE_URL
and call it a dayDATABASE_URL
and call it a day Activating VS 17.6.3
— why does this take >1 second?Activating VS 17.6.3
— why does this take >1 second? VC/Auxiliary/Build/vcvars64.bat
// samplerate is 48000, can be any positive number tho
double running = 5; // (0, 5)
const double growthConstant = 1. + (1. / (samplerate / 3));
// (1, 5 * growthConstant); (2, (5 * growthConstant) * growthConstant)
for (int i = 0; i < samplerate; i++) { // Test every X between 0 and 48000
audiodata[i] = running;
running *= -growthConstant;
}
>>> (16001/16000)**48000 * 5
100.41827035443303
>>> (1 + 1 / (48000 / 3))**48000 * 5
100.41827035443303
2.718281828459045
/Za
for stdlib.h
not to define min
/max
macros/Za
means "turn on standard compliance"/Za
also turns on this error/Za
means "turn on standard compliance" stdlib.h
, not windows.h
for whatever reasonstdlib.h
, not windows.h
for whatever reason -D
//D