-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.html
23 lines (14 loc) · 9.61 KB
/
1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html><html><head><meta charSet="utf-8"/><title>12k Tech Blog</title><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="https://unpkg.com/[email protected]/css/tachyons.min.css"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv" crossorigin="anonymous"/><link rel="stylesheet" href="/css/github-markdown.css"/><link rel="stylesheet" href="/css/highlight.css"/><script defer="" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-483A6DwYfKeDa0Q52fJmxFXkcPCFfnXMoXblOkJ4JcA8zATN6Tm78UNL72AKk+0O" crossorigin="anonymous"></script><script defer="" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF" crossorigin="anonymous"></script><meta name="next-head-count" content="9"/><link rel="preload" href="/_next/static/css/556eb87153dc9ca625fe.css" as="style"/><link rel="stylesheet" href="/_next/static/css/556eb87153dc9ca625fe.css"/><link rel="preload" href="/_next/static/css/e81721d608aaea72e7ce.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e81721d608aaea72e7ce.css"/><link rel="preload" href="/_next/static/chunks/main-794d8598b5f1f819e70a.js" as="script"/><link rel="preload" href="/_next/static/chunks/webpack-ccf5ab034a524403276a.js" as="script"/><link rel="preload" href="/_next/static/chunks/framework.6c6c2144b5674c37af03.js" as="script"/><link rel="preload" href="/_next/static/chunks/commons.c1da88ced54c9ffa7714.js" as="script"/><link rel="preload" href="/_next/static/chunks/pages/_app-6b3651ecef8878c0ce3d.js" as="script"/><link rel="preload" href="/_next/static/chunks/99a17ff61bb56832986f97369f36a5b6e9c99511.4b656b6a47797cef6e06.js" as="script"/><link rel="preload" href="/_next/static/chunks/pages/%5Bpage_no%5D-b7c72e4ae30ce3a2bbe6.js" as="script"/></head><body><div id="__next"><div><div class="relative bg-white Banner_banner__2vTsv"><div class="white pt6 pb5 Banner_banner_content__1HXXB"><h1 class="mv2 f2">12K Tech Blog</h1><div><a class="dib f6 white no-underline mr2" href="/">HOME</a><a class="dib f6 white no-underline mr2" href="https://github.com/12k-Tech-Group">GITHUB</a></div></div></div><main class="lh-copy"><div class="pa3 bg-white center Index_preview_list__1sEKT"><div class="mt2 mb3 mh2 pb2 bb b--light-gray"><a class="b black o-80 glow no-underline lh-solid f3" href="/post/2020/why-use-ddr-instead-of-gddr">为啥内存不使用GDDR显存芯片</a><p class="mv2 o-60">引子
【管理员】王大可 2020/09/05 18:23:05
为啥内存不使用显存芯片
【))】白神 2020/09/05 18:26:40
这个问题本群解释过了吧<a class="b black o-80 glow no-underline lh-solid undefined" href="/post/2020/why-use-ddr-instead-of-gddr"><span> »</span></a></p><small class="mt1 db ttu o-40"><time>2020/09/06</time><span> <!-- -->麦卡子</span></small></div><div class="mt2 mb3 mh2 pb2 bb b--light-gray"><a class="b black o-80 glow no-underline lh-solid f3" href="/post/2020/unique_ptr">unique_ptr的缺陷</a><p class="mv2 o-60">unique_ptr 不能被优化为裸指针
尽管sizeof(uniqueptrT, defaultdelete<T) == sizeof(void*), ABI 限制了 uniquept<a class="b black o-80 glow no-underline lh-solid undefined" href="/post/2020/unique_ptr"><span> »</span></a></p><small class="mt1 db ttu o-40"><time>2020/09/01</time><span> <!-- -->mq</span></small></div><div class="mt2 mb3 mh2 pb2 bb b--light-gray"><a class="b black o-80 glow no-underline lh-solid f3" href="/post/2020/random">关于随机数的一些讨论</a><p class="mv2 o-60">rand() 真的够用了
linux下rand是线程安全的
randint(min, max) 错误实现导致溢出UB可能造成一些无法预料的结果
错误姿势❌:
`
range = max-m<a class="b black o-80 glow no-underline lh-solid undefined" href="/post/2020/random"><span> »</span></a></p><small class="mt1 db ttu o-40"><time>2020/08/31</time><span> <!-- -->mq</span></small></div><div class="mt2 mb3 mh2 pb2 bb b--light-gray"><a class="b black o-80 glow no-underline lh-solid f3" href="/post/2020/%E7%AD%9B%E7%AE%80%E5%8E%86%E6%9C%89%E6%84%9F">筛简历有感</a><p class="mv2 o-60">同事经常跟我抱怨,说优秀的毕业生简历难遇。我感觉不可思议,如果说90后直到初高中甚至大学才有机会接触电脑、接触程序开发,所以简历不多的话,那现在都0202年了,这一批98后怎么说都应该比我们那会儿早接触个几<a class="b black o-80 glow no-underline lh-solid undefined" href="/post/2020/%E7%AD%9B%E7%AE%80%E5%8E%86%E6%9C%89%E6%84%9F"><span> »</span></a></p><small class="mt1 db ttu o-40"><time>2020/08/30</time><span> <!-- -->chu</span></small></div><div class="mt2 mb3 mh2 pb2 bb b--light-gray"><a class="b black o-80 glow no-underline lh-solid f3" href="/post/2020/double%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%B8%83%E5%B1%80">double二进制布局</a><p class="mv2 o-60">IEEE754
+-+-----------+----------------------------------------------------+
|s| exp(11bit)|<a class="b black o-80 glow no-underline lh-solid undefined" href="/post/2020/double%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%B8%83%E5%B1%80"><span> »</span></a></p><small class="mt1 db ttu o-40"><time>2020/08/26</time><span> <!-- -->mq</span></small></div><div class="mt2 mb3 mh2 pb2 bb b--light-gray"><a class="b black o-80 glow no-underline lh-solid f3" href="/post/2020/ThreadLocal%E4%B8%8E%E5%85%B6%E5%AE%9E%E7%8E%B0">ThreadLocal与其实现</a><p class="mv2 o-60">C++ threadlocal 及 C Threadlocal 变量(线程局部变量, _thread local variables )相关注记
存储所用的空间(线程局部存储, thre<a class="b black o-80 glow no-underline lh-solid undefined" href="/post/2020/ThreadLocal%E4%B8%8E%E5%85%B6%E5%AE%9E%E7%8E%B0"><span> »</span></a></p><small class="mt1 db ttu o-40"><time>2020/08/26</time><span> @<a href="https://github.com/leohawke">leohawke</a></span><span> @<a href="https://github.com/frederick-vs-ja">frederick-vs-ja</a></span></small></div><div class="center tc grow"><span class="mh1 b black o-80 glow underline lh-solid">1</span></div></div></main><footer class="center w5 f6 tc mt4 black"><p><span>© </span><span>2020-<!-- -->2020<!-- --> 12k Tech Blog</span></p></footer></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"summaries":[{"title":"为啥内存不使用GDDR显存芯片","href":"post/2020/why-use-ddr-instead-of-gddr","path":"2020/why-use-ddr-instead-of-gddr","date":"2020-09-06T11:33:00.000Z","author":[{"name":"麦卡子","link":""}],"preview":"引子\n\n【管理员】王大可 2020/09/05 18:23:05\n\n\t为啥内存不使用显存芯片\n\n【))】白神 2020/09/05 18:26:40\n\n\t这个问题本群解释过了吧"},{"title":"unique_ptr的缺陷","href":"post/2020/unique_ptr","path":"2020/unique_ptr","date":"2020-09-01T12:30:00.000Z","author":[{"name":"mq","link":""}],"preview":"unique_ptr 不能被优化为裸指针\n\n尽管sizeof(uniqueptrT, defaultdelete\u003cT) == sizeof(void*), ABI 限制了 uniquept"},{"title":"关于随机数的一些讨论","href":"post/2020/random","path":"2020/random","date":"2020-08-31T19:50:00.000Z","author":[{"name":"mq","link":""}],"preview":"rand() 真的够用了\n\nlinux下rand是线程安全的\n\nrandint(min, max) 错误实现导致溢出UB可能造成一些无法预料的结果\n\n错误姿势❌:\n`\nrange = max-m"},{"title":"筛简历有感","href":"post/2020/筛简历有感","path":"2020/筛简历有感","date":"2020-08-30T00:28:00.000Z","author":[{"name":"chu","link":""}],"preview":"同事经常跟我抱怨,说优秀的毕业生简历难遇。我感觉不可思议,如果说90后直到初高中甚至大学才有机会接触电脑、接触程序开发,所以简历不多的话,那现在都0202年了,这一批98后怎么说都应该比我们那会儿早接触个几"},{"title":"double二进制布局","href":"post/2020/double二进制布局","path":"2020/double二进制布局","date":"2020-08-26T14:20:00.000Z","author":[{"name":"mq","link":""}],"preview":"IEEE754\n\n+-+-----------+----------------------------------------------------+\n|s| exp(11bit)|"},{"title":"ThreadLocal与其实现","href":"post/2020/ThreadLocal与其实现","path":"2020/ThreadLocal与其实现","date":"2020-08-26T11:50:00.000Z","author":[{"name":"leohawke","link":"https://github.com/leohawke"},{"name":"frederick-vs-ja","link":"https://github.com/frederick-vs-ja"}],"preview":"C++ threadlocal 及 C Threadlocal 变量(线程局部变量, _thread local variables )相关注记\n存储所用的空间(线程局部存储, thre"}],"page_no":"1"},"__N_SSG":true},"page":"/[page_no]","query":{"page_no":"1"},"buildId":"uG6Uyw8TQZ-_5ALPSJHi5","nextExport":false,"isFallback":false,"gsp":true}</script><script nomodule="" src="/_next/static/chunks/polyfills-c30a0338d988282f18a0.js"></script><script src="/_next/static/chunks/main-794d8598b5f1f819e70a.js" async=""></script><script src="/_next/static/chunks/webpack-ccf5ab034a524403276a.js" async=""></script><script src="/_next/static/chunks/framework.6c6c2144b5674c37af03.js" async=""></script><script src="/_next/static/chunks/commons.c1da88ced54c9ffa7714.js" async=""></script><script src="/_next/static/chunks/pages/_app-6b3651ecef8878c0ce3d.js" async=""></script><script src="/_next/static/chunks/99a17ff61bb56832986f97369f36a5b6e9c99511.4b656b6a47797cef6e06.js" async=""></script><script src="/_next/static/chunks/pages/%5Bpage_no%5D-b7c72e4ae30ce3a2bbe6.js" async=""></script><script src="/_next/static/uG6Uyw8TQZ-_5ALPSJHi5/_buildManifest.js" async=""></script><script src="/_next/static/uG6Uyw8TQZ-_5ALPSJHi5/_ssgManifest.js" async=""></script></body></html>