Chengyu Han

Results 159 comments of Chengyu Han

中文的简介:[极简的 PNG 编码函数 svpng() - 知乎](https://zhuanlan.zhihu.com/p/26525083) 你声明了一张 `w=2560, h=1280, alpha=false` 实际呢? 输入的 img rgb 也就 `128*256*4`,长宽不对,而且多了 alpha 通道。 仔细看看 [usage](https://github.com/miloyip/svpng#usage)

先大概看看,知道 PNG 的文件格式。 极简的 PNG 大概分为: - 签名 x1 `b"\x89PNG\r\n\32\n"` - 数据块 1. IHDR(header chunk) x1 2. IDAT(image data chunk) xN 3. IEND(image trailer chunk) x1: `b"IEND"` + crc 基本数据块部分结尾都是...

Why do you remove this method? > `bind(c::Channel, task::Task)` ```jl julia> VERSION v"1.8.0-rc3" julia> methods(bind) # 4 methods for generic function "bind": [1] bind(c::Channel, task::Task) in Base at channels.jl:253 [2]...

An interesting finding is that the x86 version (70min) takes twice as long to test as the x64 version (32min). Maybe it's just some coincidence, but I'll run the x86...

> Apple clang version 11.0.3 (clang-1103.0.32.62) > Target: x86_64-apple-darwin21.4.0 > > https://buildkite.com/julialang/julia-master/builds/14479#01825f64-7e12-49b9-922d-584a2b10d7e0/321-324

![image](https://user-images.githubusercontent.com/5158738/182632638-0b6994c1-dec1-4c48-a47e-90233b0db8f3.png) ![image](https://user-images.githubusercontent.com/5158738/182642222-523a9821-fa45-492d-ab5b-783b5462f862.png) missing `_ZSt14__once_functor` in `libstdc++-6.dll` ---- Update: What is the full version number of our gcc12? Maybe we need this patch? > libstdc++: Check for TLS support on mingw...

Workaround: `\N{U+XXXX}` > The escape sequence \N{U+} is recognized as another way of specifying a Unicode character by code point in a UTF mode. > https://www.pcre.org/current/doc/html/pcre2unicode.html ```jl julia> '和' '和':...

Why does your `BigFloat` print so few significant digits? What is the output of `precision(BigFloat)` in julia. ```jl julia> precision(BigFloat) 256 julia> BigFloat(2.1)-BigFloat(2.0) 0.100000000000000088817841970012523233890533447265625 julia> BigFloat(2.1) 2.100000000000000088817841970012523233890533447265625 julia> BigFloat(2.0) 2.0...