yun@dicom

导航

2021年12月2日 #

引用文章 - OpenTracing 语义惯例

摘要: 原文来自 https://github.com/opentracing-contrib/opentracing-specification-zh/blob/master/semantic_conventions.md 语义惯例 OpenTracing标准 描述的语言无关的数据模型,以及OpenTra 阅读全文

posted @ 2021-12-02 10:17 yun@dicom 阅读(229) 评论(0) 推荐(0)

引用文章 - OpenTracing 语义标准

摘要: 别人家的文章 - OpenTracing 语义标准 如标题所说, 这批文章不是我写的,引用自 https://github.com/opentracing-contrib/opentracing-specification-zh/blob/master/specification.md 因为 git 阅读全文

posted @ 2021-12-02 10:11 yun@dicom 阅读(322) 评论(0) 推荐(0)

2021年9月1日 #

引用文章 - 傻瓜函数式编程

摘要: 如标题所说, 这批文章不是我写的,引用自 https://github.com/justinyhuang/Functional-Programming-For-The-Rest-of-Us-Cn/blob/master/FunctionalProgrammingForTheRestOfUs.cn.m 阅读全文

posted @ 2021-09-01 14:35 yun@dicom 阅读(385) 评论(0) 推荐(0)

2021年6月13日 #

国家-语言列表 - 来自 Microsoft 网站

摘要: 原文来自 https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/a9eac961-e77d-41a6-90a5-ce1a8b0cdb9c 抄录在这里,作为备忘 TABLE 2 Language Location (o 阅读全文

posted @ 2021-06-13 12:57 yun@dicom 阅读(729) 评论(0) 推荐(0)

2020年10月12日 #

用 C++ 模板实现 C# event

摘要: 用 C++ 模板实现 C# event 前言: C# 的 event 关键字支持观察者模式,而且是在语法级别支持.C++ 的同学大概都很羡慕.不用嫉妒恨,我们可以用 template 来实现一个,代码也不复杂,很简单. 设计要求和思路 1. 功能和接口都类似 C# 的 event, 便于使用2. 用 阅读全文

posted @ 2020-10-12 12:14 yun@dicom 阅读(585) 评论(0) 推荐(0)

2020年9月30日 #

设计一个给任何对象加锁的 C++ 模板, 用于多线程互斥访问

摘要: 设计一个给任何对象加锁的 C++ 模板, 用于多线程互斥访问 前言: 众所周知,如果多个线程同时访问一个共享的对象,就需要给这个对象加锁.否则,很可能发生时序方面的逻辑错误,更严重的会导致访问例外.关于这方面的文章已经非常多了.不多说了. 无论是C++11标准库,还是boost,都没有提供支持并发( 阅读全文

posted @ 2020-09-30 15:02 yun@dicom 阅读(711) 评论(0) 推荐(0)

2020年8月14日 #

为 C# 重定义类型, 类似 C++ 的 typedef

摘要: 在using xxx 的后面增加如下行 using MyList = System.Collections.Generic.List <(uint AppID, string Name, string Address, string AppDesc)>; 然后可以用 MyList list_a = 阅读全文

posted @ 2020-08-14 09:37 yun@dicom 阅读(750) 评论(0) 推荐(0)