eagleboost Blog

梦想做大侠

对AI编程能力的一点看法

————AI程序员离优秀还有距离

对AI编程能力的一点看法 AI根据提示词与历史文章风格参与创作   记得几年前,确切地说是OpenAI那一波浪潮刚起的时候,山姆·奥特曼们就豪言壮语,说AI已经把人类迄今为止产生的所有知识都学完了。乍一听挺唬人,但仔细琢磨一下,实际情况远非如此。   那些被喂给AI用于训练的数据或知识,本质上是AI开发者“能够得到”的知识。其中就算不是绝大多数,至少有很大一部分是来自互联网的公...

Vibe Coding的悖论以及AI的理解力

On a whim, I decided to try using the command-line interface of an AI for file-related operations, which is more convenient than web chat. I started with OpenAI’s Codex CLI, but it’s not...

Vibe Coding would not work

I watched the interview of Sam Altman on Huge Conversations following the release of GPT-5. Shortly after beginning of the interview, he mentioned: The thing that I am most excited ...

CompiledHashSet

Compiled HashSet   In the previous blog post “Compiled Dictionary” a basic implementation was provided, but one scenario was not addressed. For example, when the dictionary’s key is of ...

CompiledDictionary

Compiled Dictionary   I recently came across an excellent blog post Compiling a dictionary into a switch expression, where the author proposed an idea to improve the lookup speed of a D...

MongoDB BSON patch

Issue   Our project has been using MongoDB to store information such as user settings. For many years, we relied on MongoDB’s official .NET Driver, which involved creating a client inst...

Funari

————一种股票交易订单类型

  心血来潮想起一个股票交易中有趣的金融概念,就问了一下DeepSeek。 问:OrderType里的Funari什么意思? 答:   在金融交易的 OrderType(订单类型) 中,Funari 是一种特殊的订单类型,主要在日本和韩国的交易所中使用。它的核心特点是: 定义:Funari 订单是一种限价订单,但如果到市场收盘时仍有未成交的部分,剩余未成交的订单会自动转为市价订...

Executing Tasks Exclusively

——确保任务顺序执行

  优化项目中某项功能时我提出了一个需求,类似于访问WPF的界面控件需要在GUI线程上一样,我希望某些代码在后台线程执行,但同一时间只能干一件事,这样可以简化代码不需要显示使用锁。   ConcurrentExclusiveSchedulerPair有一个ExclusiveTaskScheduler看起来可以用。 Provides task schedulers that coord...

可疑的ArgumentException

  项目做得久了,千奇百怪的问题都会遇到。大多数问题一看就知道怎么回事,有些问题则很有迷惑性,甚至让人百思不得其解。   最近用户报告了一个错误,分析日志后发现往一个ObservableCollection<T>里面插入数据的时候抛出了System.ArgumentException,类似下面这样。看起来是内部出现了InvalidCast,问题是这里的xxx确实是yyy类型,不...

慎用隐式类型转换

  .Net允许用户自定义运算符operator来实现两个类型之间的转换以提高代码灵活性。自定义运算符分为显式和隐式两种。显式运算符需要在代码中明确地把目标类型写出来,隐式运算符则由编译器自动检测和推断类型再生成相应代码。   比如有下面这样一个类型,可用于根据string类型的id查找一个由泛型参数T指定的对象。 1 2 3 4 5 6 public sealed class Look...