A Small C Compiler
Mirror and changes from Ubuntu acpitool source package
Security advisory database for Rust crates published through crates.io
Rust symbol demangling
Rust API guidelines
A cat(1) clone with wings.
lzutao/bench-rust-float-integral 0
Benchmark between different methods to know a f64 value is also an integer
The Rust Programming Language Blog
Bogo engine, reimplemented in C for portability.
pull request commentrust-lang/miri
build: Gate only on GHA: remove travis and appveyor ci config
My apology! I forgot bors isn't gated on appveyor now :p
comment created time in 4 hours
pull request commentrust-lang/miri
build: Gate only on GHA: remove travis and appveyor ci config
@bors retry
comment created time in 4 hours
PR opened rust-lang/miri
It's been over a week since #1571 merged. The GHA evaluation is successful.
This PR removes CI config of travis and appveyor. Now MIRI gates on github actions CI only.
Will need https://github.com/rust-lang/homu/pull/109 to merge first, otherwise bors will stuck.
pr created time in 9 hours
PR opened rust-lang/homu
It's over a week after https://github.com/rust-lang/miri/pull/1571 merged and we've been experimenting with GHA successfully.
Last PR gated miri on GHA at https://github.com/rust-lang/rust-central-station/pull/939, but the configuration moved to this repo.
cc @RalfJung
pr created time in 9 hours
push eventlzutao/zstd
commit sha e8f4ad5dc719762d7d9de4475d8c40d22e553920
meson: disable shared build for msvc
commit sha 37c64167b31a994f5e26bb0324aa28d03263f9a7
dll
commit sha 6c2ada7a9b6753ecb8fbc7420276f7069bb6fd44
allow msvc
commit sha eb63a3f366c86e552c35b6dd98514ba4db847362
fixup! dll
push time in a day
pull request commentlzutao/zstd
Thank you for your reviews. My goal with CI changes is to create an environment to check my change in meson config. I have no intend to include them in Zstd CI config.
Actually, I want to use vcpkg too. But as you could see:
- vcpkg is slower than manual installing lz4
- I'm not an advanced Windows and CMake users, the lz4 packages installed by vcpkg doesn't include .pc file. Also its installed cmake config is not standard. I don't think meson is able to understand vcpkg yet.
comment created time in a day
push eventlzutao/zstd
commit sha cb7cd6212a6e5be72778da7cae617c50b3d4048b
use debug profile
commit sha 354d6f7e880236274ddd53c0c617997684f7473a
dll
push time in a day
push eventlzutao/zstd
commit sha 547c24d93bebe04071cfeb3532fab45b4e3efe38
visualbility
push time in a day
push eventlzutao/zstd
commit sha 0e7c168b8510f68aa508443485b3485929e8744d
visualbility
push time in a day
push eventlzutao/zstd
commit sha 95de0f04dcea41f8931baaebe3509d6079de9fbb
visualbility
push time in a day
push eventlzutao/zstd
commit sha 21a6f8a07991eb03dc7ffa1a1ffffd8ddb7cbbc4
visualbility
push time in a day
push eventlzutao/zstd
commit sha fc2656b281d08a8a65fa884d29b2bcb8bf3e1f8a
revert
commit sha 36fe8af7fd7c41a6bd26570dab5d3b1887d1f624
visualbility
push time in a day
issue commentrust-lang/rust
Feature request: Preventing dropping fields of a dropped struct for better C++ interoperability
@rustbot modify labels: A-borrow-checker A-mir C-feature-request T-lang
comment created time in 2 days
pull request commentfacebook/zstd
meson: Deny shared build on MSVC compiler
@animalize I could. However does the same flag used anywhere else in the other build systems? I don't want to use some custom optimization flag for meson only. Also adding that flag would be better in another PR.
comment created time in 2 days
issue commentrust-lang/rust
Type inference failure on From::from tries to blame Iterator::collect
The error message should point to rng.gen() instead.
The correct code would be:
use rand::Rng;
use std::net::Ipv4Addr;
fn main() {
let mut rng = rand::thread_rng();
let ips: Vec<_> = (0..100_000)
.map(|_| Ipv4Addr::from(rng.gen::<u32>()))
.collect();
}
comment created time in 2 days
push eventlzutao/zstd
commit sha f73d4f0b958abe954f1cb71c5e1142e70abeefe7
fixup! meson: disable shared build for msvc
push time in 2 days
push eventlzutao/zstd
commit sha 93749584b629279a430d726f210364c0a008dddd
meson: disable shared build for msvc
push time in 2 days
push eventlzutao/zstd
commit sha 376b61df7ac4008b0d0c710f6f4eb14f4906d9ec
me
commit sha 27903283666c0c75e431b1c57272acb7332c9502
gcc
push time in 2 days
pull request commentfacebook/zstd
Thank you, @terrelln. Your way really fixes the statically build. The shared build still fall with unresolved symbols error. Hope you could take a look.
At worst case, I could disable shared build for msvc.
comment created time in 2 days
push eventlzutao/zstd
commit sha 66582abc4657049bde158ae14232423fd43bee5e
clashing
push time in 2 days
push eventlzutao/zstd
commit sha 003c03484edcd5e751ba62ec110238cb5182afea
clashing
push time in 2 days
push eventlzutao/rust-siphash
commit sha 92aab711199ef0e0322e72bba4fd5aa1ffba80d7
init
push time in 3 days
push eventlzutao/rust-siphash
commit sha c12c86cd90584a5ad9cd97a4c736b271ed821989
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha f99382ceb4c0b3b981814555c699ca3f62ab56e8
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 6109fe5d09f63f42926dfa28988049e07cd2b3f0
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha d93425cb707fbe726ad68965732c3a84ed8a9a93
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha bcab19dfa688ab6594ec6908875fe7ab7c9744af
asdfasfsdf
commit sha f8272430cf8e7605182d7617a71700fc29246a00
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 15bece9c7081a32cd4f5ac00a37d0cff25cfb282
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 7398871b32e5180dffa0985f1d111162c6ac7d24
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 11043cc8084fbfd777aac1998e0e8dcd44738faa
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 72eb7784cd861e85796c34a1700edc5b152e0b51
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha df3493c6371fdcbaae4437b91fefbec743fcb4f0
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 775c117072a993d6352cee5f4eec5363c6b92846
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 8f4ed0feaa3e65b62de13ce674cffce4b80bd94b
asdfasfsdf
push time in 3 days
pull request commentrust-lang/nomicon
It is now display as slice: T.
comment created time in 3 days
push eventlzutao/rust-siphash
commit sha 4d80c11efababc4ab1a2c885bca86cc2c89bed43
asdfasfsdf
commit sha cd3d700f08a61170a8404e66fb4e025846a56f98
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 38ca31c6d37294ce996ad04ff243b4897ceb6f10
asdfasfsdf
push time in 3 days
push eventlzutao/rust-siphash
commit sha 3c2b2956945c3eb02caa4d88f2ec57abc5ff8e71
init
push time in 3 days
created repositorylzutao/rust-siphash
siphash and benchmark with reference implementation in C
created time in 3 days
pull request commentrust-lang/rust
always try inlining functions which do not call other functions
It's gone from 0.250 to 1,616.645 (seconds ?).
comment created time in 3 days
issue commentrust-lang/stdarch
BZHI panic at wrong bit_position
I don't think gnzlbg does opensource anymore. But yeah, should be an issue for that repo.
comment created time in 3 days
Pull request review commentrust-lang/rust
Add codegen test for issue #73827
+// This test checks that bounds checks are elided when+// index is part of a (x | y) < C style condition++// min-llvm-version: 11.0.0+// compile-flags: -O++#![crate_type = "lib"]++// CHECK-LABEL: @get+#[no_mangle]+pub fn get(array: &[u8; 8], x: usize, y: usize) -> u8 {+ if x > 7 || y > 7 {+ 0+ } else {+ // CHECK-NOT: panic_bounds_check
That is fine. I just prefer to do whatever https://llvm.org/docs/CommandGuide/FileCheck.html does.
comment created time in 3 days
Pull request review commentrust-lang/rust
Add codegen test for issue #73827
+// This test checks that bounds checks are elided when+// index is part of a (x | y) < C style condition++// min-llvm-version: 11.0.0+// compile-flags: -O++#![crate_type = "lib"]++// CHECK-LABEL: @get+#[no_mangle]+pub fn get(array: &[u8; 8], x: usize, y: usize) -> u8 {+ if x > 7 || y > 7 {+ 0+ } else {+ // CHECK-NOT: panic_bounds_check
I'd prefer to move this line up and move it below the CHECK-LABEL.
comment created time in 3 days
issue commentrust-lang/rust
Document that casting &mut T to &mut MaybeUninit<T> is not safe
Isn't it a transmute and not a cast ?
comment created time in 3 days
Pull request review commentfacebook/zstd
endif libzstd_c_args = [] if cc_id == compiler_msvc if default_library_type != 'static'- libzstd_sources += [windows_mod.compile_resources(- join_paths(zstd_rootdir, 'build/VS2010/libzstd-dll/libzstd-dll.rc'))]+ libzstd_sources += [+ windows_mod.compile_resources(+ join_paths(zstd_rootdir, 'build/VS2010/libzstd-dll/libzstd-dll.rc'),+ include_directories: include_directories(join_paths(zstd_rootdir, 'lib')),
I am sorry for giving the wrong like.
comment created time in 3 days
Pull request review commentfacebook/zstd
endif libzstd_c_args = [] if cc_id == compiler_msvc if default_library_type != 'static'- libzstd_sources += [windows_mod.compile_resources(- join_paths(zstd_rootdir, 'build/VS2010/libzstd-dll/libzstd-dll.rc'))]+ libzstd_sources += [+ windows_mod.compile_resources(+ join_paths(zstd_rootdir, 'build/VS2010/libzstd-dll/libzstd-dll.rc'),+ include_directories: include_directories(join_paths(zstd_rootdir, 'lib')),
That was a shared build. All the missing symbols were in zstd.lib, which was included the the link command.
There was also a statically build, which has syntax error: https://github.com/lzutao/zstd/runs/1267569335#step:8:124.
comment created time in 3 days
Pull request review commentfacebook/zstd
endif libzstd_c_args = [] if cc_id == compiler_msvc if default_library_type != 'static'- libzstd_sources += [windows_mod.compile_resources(- join_paths(zstd_rootdir, 'build/VS2010/libzstd-dll/libzstd-dll.rc'))]+ libzstd_sources += [+ windows_mod.compile_resources(+ join_paths(zstd_rootdir, 'build/VS2010/libzstd-dll/libzstd-dll.rc'),+ include_directories: include_directories(join_paths(zstd_rootdir, 'lib')),
It will, but I have MSVC compiler error about syntax: https://github.com/lzutao/zstd/runs/1264653094#step:8:130.
comment created time in 3 days
issue commentfacebook/zstd
There are one more place needed to change like that, see https://github.com/facebook/zstd/pull/2363/commits/7cbc04a1c90425d3e65ecfc25a6db411543e3b2d
Also, zstd codebase doesn't pass compilation on MSVC 2019. I'd recommend using gcc or clang in the meantime.
comment created time in 3 days
PR opened facebook/zstd
Apparently, zstd has never tested on MSVC 2019 and currently fall to build on that compiler. It would make sense to gate Meson until there is proper support for that compiler. cc #2358
This PR also fixes some minor correctness issues.
pr created time in 3 days
push eventlzutao/zstd
commit sha 07e04fe725244e83aa3fc1bff27b6249e11270e1
Deny MSVC compiler in meson until the build passed
push time in 3 days
issue commentmesonbuild/meson
[feature request] Way to define C macro across msvc and gcc like cmake
I tested. You're right about MSVC understands -DFOO syntax and -WFOO syntax.
Meson automatically converts UNIX style (gcc/clang) compiler options to the MSVC equivalent when required
However, is this documented somewhere in https://mesonbuild.com ? Also, what does it mean about "when required" ? Is there an option/command to force/check that ?
comment created time in 3 days
push eventlzutao/rustc
commit sha 0ad3da06843089c0bf10d6caa3fbbc72fa67787a
Enable ASLR for windows-gnu
commit sha e023158145ece18176a2e93420600ccda0d0bc58
Permit uninhabited enums to cast into ints This essentially reverts part of #6204.
commit sha 990a39596cf3b33e550f2045f78a62970f8d78f8
Prevent ICE on uninhabited MIR interpretation
commit sha a02014280586b53997622c501db00398376967a8
Refactor io/buffered.rs into submodules
commit sha 96229f02402e82914ec6100b28ad2cbdd273a0d4
move buffered.rs to mod.rs
commit sha 6d75cdfc9ed9e6987bd23add6cf3954d2499dce2
Added updated compiler diagnostic
commit sha da700cba08a2b194d19e63d3c51ebadce96fe46b
Stabilize move_ref_pattern
commit sha afb9eeb1b9ea16ca65e38673a0ef3e7be81d7252
Disabled error `E0007` from rustc_error_codes
commit sha c4280af8285c61b367a87c8f6eef9876011a8150
Retry fix error reporting suggestions
commit sha 0a4dc8bc161c68320a60a6bde525adae258b6252
Adds a GitHub Actions CI build for aarch64-pc-windows-msvc via cross-compilation on an x86_64 host. This promotes aarch64-pc-windows-msvc from a Tier 2 Compilation Target (std) to a Tier 2 Development Platform (std+rustc+cargo+tools). Fixes #72881
commit sha 13dfbb64d313137b7d3c33067910e90f27bc6345
Suggest imports of unresolved macros
commit sha 479298e05e8177b171c6d6bcd35fc7553b424bee
Re-run tests with --bless
commit sha ea7cf6106864ce7929eb9f3cfe580f05ee418ac8
Don't suggest macros that out of scope
commit sha 0b923d3ca0b7f5a1a611564ee48c1e92f896d79e
add `str::{Split,RSplit}::as_str` methods This commit introduses 2 methods under "str_split_as_str" gate with common signature of `&Split<'a, _> -> &'a str'`. Both of them work like `Chars::as_str` - return unyield part of the inner string.
commit sha 4747215d778abd9f280202d07f279fdeaea519f8
add `str::{SplitN, RSplitN, SplitTerminator, RSplitTerminator}::as_str` methods This commit entroduce 4 methods smililar to `Split::as_str` all under the same gate "str_split_as_str".
commit sha 076514c8a82591547116a7a2212c4de4bdc56f76
add `str::SplitInclusive::as_str` method This commit entroduces `core::str::SplitInclusive::as_str` method similar to `core::str::Split::as_str`, but under different gate - "str_split_inclusive_as_str" (this is done so because `SplitInclusive` is itself unstable).
commit sha 536674fb69ea161f50f68f3fdb65950feffd92a4
cleanup WithOptConstParam queries
commit sha a35a93f09cc111a53d00efc567ad678583dd5ac7
Pass tune-cpu to LLVM I think this is how it should work...
commit sha 8160bfa39caad79a224ec44449efe48dd0c79c36
query_name_of_opt_const_arg -> query_name_opt_const_arg
commit sha 97beb074aff40cb1b6444e9eff734a1a5c17dfc7
BTreeMap: derive type-specific variants of node_as_mut and cast_unchecked
push time in 3 days
issue commentrust-lang/rust
This doesn't seems like a compiler bug @rustbot modify labels: -C-bug -E-needs-mcve
comment created time in 3 days
issue commentfacebook/zstd
I think until the Visual C/C++ compiler properly supported in the codebase, I will gate meson with gcc-liked compiler.
comment created time in 3 days
push eventlzutao/zstd
commit sha c7c032e5a08eec1435670f22c43bdb86a877ba61
meson arr
commit sha 37fc2e878ca0ac08953a47b02055046148380e34
meson arr
push time in 3 days
push eventlzutao/zstd
commit sha 142e4a16f92df4ec1013133c3a4ab2e669a2d634
meson arr
push time in 3 days
push eventlzutao/zstd
commit sha f78d483a8053b636bb53c6d755171c52de209579
cpp
commit sha cb9f5a71561b2fcca7582826ed83453aca09d0c4
bool
commit sha ead867745ee000d72dcfbbaa5ddd8e22d7be446b
bool
commit sha 25a8205a96628633a979cff27bb57bb58c007c75
bool
commit sha f4f38980fe7bb85b0381d5a8028f65dffae28b7a
bool
commit sha 06beca395a6a8547728dcf62b82e810723083744
bool
commit sha a57e2c6b1321ac2ee69e1bf854d8325e60461d71
bool
commit sha 6a7c9edb51115189c31e30f1f68fcf86c31ac662
bool
commit sha 8986517182af204f86d19cd91a2eb8ea0a9a7229
bool
commit sha 8e02728f9dfa89a660207d8ac6bb548f71580e7e
bool
commit sha 8eb682b3ffff31fc7ec4704401ebf181763418a4
meson arr
push time in 3 days
issue openedmesonbuild/meson
[feature request] Way to define C macro across msvc and gcc like cmake
cmake has COMPILE_DEFINITIONS which used to set to a list of preprocessor definitions using the syntax VAR or VAR=value.
I know I could do the same thing with c_args: [ '-DFOO=bar' ] on gcc/clang or c_args: [ '/DFOO=bar' ] on msvc.
But I have to check compiler for each macro define site.
created time in 3 days
issue commentrust-lang/rust
thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 43
Please retry on newest stable and nightly toolchain.
comment created time in 4 days
issue commentfacebook/zstd
I don't think the code base tested on Visual C/C++ compiler, I cannot get the code to statically compile on msvc: some are syntax errors. I haven't tried cmake/VS* solution project.
comment created time in 4 days
push eventlzutao/zstd
commit sha 05efc6d3c099aab8b5b49b92a0fdac203693e351
static
push time in 4 days
push eventlzutao/zstd
commit sha 0b50f69a02c9df23df3eddc997072d42a51e167f
meson -D
push time in 4 days
push eventlzutao/zstd
commit sha 5f629f6b77c9ef10d91f544179c8f224a0761a81
meson -D
push time in 4 days
push eventlzutao/zstd
commit sha c916fc4400b889433e859ecd2e4d07e2ad845d8f
meson -D
push time in 4 days
push eventlzutao/zstd
commit sha 71b22ceca747154ffc5c4ae6e390289e60387330
meson -D
push time in 4 days
push eventlzutao/zstd
commit sha ec5852bb00d20018b5d7cddfba590ddd9fcb9877
meson -D
push time in 4 days
push eventlzutao/zstd
commit sha d0e1a71945882b3b390c2c589d74198b72242f11
/D
commit sha c9c555234f4cade32af4839855526624c04e509c
meson -D
push time in 4 days
push eventlzutao/zstd
commit sha b7bfbe01fba580c4cd73620216337d2b2d5d4033
/D
commit sha f32d693b7c3f80f83c957c2b814c8ecea1b2538d
/D
push time in 4 days
push eventlzutao/zstd
commit sha 9408d8b4c99ac9720024d3984baad1d9a250ed69
prefer shared
push time in 4 days
pull request commentlzutao/zstd
Hi @o-mdr, I somewhat fixed the issue in .rc file preprocessor. However, I am stuck with some unresolved symbols, as you can see in CI. I'm using msvc compiler without visual studio:
[48/60] Linking target programs/zstd.exe
FAILED: programs/zstd.exe programs/zstd.pdb
"link" /MACHINE:x64 /OUT:programs/zstd.exe programs/programs_.._.._.._build_VS2010_zstd_zstd.rc_zstd.res programs/zstd.exe.p/.._.._.._programs_zstdcli.c.obj programs/zstd.exe.p/.._.._.._programs_util.c.obj programs/zstd.exe.p/.._.._.._programs_timefn.c.obj programs/zstd.exe.p/.._.._.._programs_fileio.c.obj programs/zstd.exe.p/.._.._.._programs_benchfn.c.obj programs/zstd.exe.p/.._.._.._programs_benchzstd.c.obj programs/zstd.exe.p/.._.._.._programs_datagen.c.obj programs/zstd.exe.p/.._.._.._programs_dibio.c.obj "/nologo" "/release" "/nologo" "/DEBUG" "/PDB:programs\zstd.pdb" "lib\zstd.lib" "C:/vcpkg/packages/zlib_x64-windows/lib/pkgconfig/../../lib/zlib.lib" "C:/Strawberry/c/lib/pkgconfig/../../lib/liblzma.a" "C:/lz4/lib/lz4.lib" "/SUBSYSTEM:CONSOLE" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
.._.._.._programs_fileio.c.obj : error LNK2019: unresolved external symbol ZSTD_cycleLog referenced in function FIO_adjustParamsForPatchFromMode
.._.._.._programs_benchzstd.c.obj : error LNK2019: unresolved external symbol ZSTD_XXH64 referenced in function BMK_benchMemAdvancedNoAlloc
.._.._.._programs_dibio.c.obj : error LNK2019: unresolved external symbol ZDICT_trainFromBuffer_unsafe_legacy referenced in function DiB_trainFromFiles
programs\zstd.exe : fatal error LNK1120: 3 unresolved externals
comment created time in 4 days
push eventlzutao/zstd
commit sha 70370d880fe31fc5d9beaf1e054ba5acd11a8e22
fix
commit sha 82a7b7505921999732bba1c99f5397a5472392db
[dnm] test
push time in 4 days
push eventlzutao/zstd
commit sha abf5c0655cfdbf25a585f1167ef47c1ff59a15c3
fix zlibwrap parallel build previous recipe would build object files directly within programs/ which could be in competition with other local builds happening in programs/ at the same time. fixed by generating the relevant object file locally.
commit sha 056f4c9145f7a495721486de8cd449d13a4a3291
Merge pull request #2360 from facebook/zwrap_parallel_build fix zwrapbench parallel build
commit sha adc53db6edb2c5408bba6c180c9dceca153dd7ab
Change make -j all check to make -j all && make check
commit sha ca885a198a618494d22ebb65c5124f8c54f6163b
Merge pull request #2361 from senhuang42/fix_travis_minimal_decompressor_macros_test [travis CI] Change make -j all check to make -j all && make check
push time in 4 days