螺莉莉数据中心
教育的下一步
教育的下一步
螺莉莉的数据中心
教育的下一步 | 螺莉莉的数据中心
随着 Deepseek R1 模型的出现,之前我对大语言模型的诸多论断全都被推翻了。比如先前我在「当患有 ADHD 的工程师坐上了名为人工智能的四驱赛博轮椅」这篇文章提到的开发范式,已经出现了大幅的松动。
原本我在向大语言模型提出开发需求时还需要剪裁自己手里的代码,把问题的核心全都一一挖出来陈列好,交给模型处理。可是现在只需要把所有跟业务逻辑有关的几页代码全都粘在一起,模型就能自己参考有关的实现,完成必要的开发工作。在使用 Rust 这类相对复杂的语言时,模型也能做到基本不出错,出错只需要简单修正一两次,就可以产出高度可用的成果。…
原本我在向大语言模型提出开发需求时还需要剪裁自己手里的代码,把问题的核心全都一一挖出来陈列好,交给模型处理。可是现在只需要把所有跟业务逻辑有关的几页代码全都粘在一起,模型就能自己参考有关的实现,完成必要的开发工作。在使用 Rust 这类相对复杂的语言时,模型也能做到基本不出错,出错只需要简单修正一两次,就可以产出高度可用的成果。…
👍2🤬1
2ality – JavaScript and more
TypeScript: extracting parts of composite types via <code>infer</code>
TypeScript: extracting parts of composite types via <code>infer</code>
2Ality
TypeScript: extracting parts of compound types via `infer`
In this blog post, we explore how we can extract parts of compound types via the infer keyword. It helps if you are loosely familiar with conditional types. You can check out chapter “Conditional types” in “Exploring TypeScript” to read up on them.
🤬1
TypeScript
Announcing TypeScript 5.8 RC
Announcing TypeScript 5.8 RC
Microsoft News
Announcing TypeScript 5.8 RC
Today we are excited to announce the Release Candidate (RC) of TypeScript 5.8! To get started using the Release Candidate, you can get it through npm with the following command: npm install -D typescript@rc Let’s take a look at what’s new in TypeScript 5.8!…
👍1🤬1
2ality – JavaScript and more
Mapped types in TypeScript
Mapped types in TypeScript
2Ality
Mapped types in TypeScript
A mapped type is a loop over keys that produces an object or tuple type and looks as follows: {[PropKey in PropKeyUnion]: PropValue} In this blog post, we examine how mapped types work and see examples of using them. Their most importing use cases are transforming…
👎1🤬1
2ality – JavaScript and more
Conditional types in TypeScript
Conditional types in TypeScript
2Ality
Conditional types in TypeScript
A conditional type in TypeScript is an if-then-else expression: Its result is either one of two branches – which one depends on a condition. That is especially useful in generic types. Conditional types are also an essential tool for working with union types…
👎1🤬1
2ality – JavaScript and more
Array type notation: <code>T[]</code> vs. <code>Array<T></code> in TypeScript
Array type notation: <code>T[]</code> vs. <code>Array<T></code> in TypeScript
2Ality
Array type notations: `T[]` vs. `Array<T>` in TypeScript
In this blog post, we explore two equivalent notations for Arrays in TypeScript: T[] and Array<T>. I prefer the latter and will explain why.
👎1🤬1
2ality – JavaScript and more
The bottom type <code>never</code> in TypeScript
The bottom type <code>never</code> in TypeScript
2Ality
The bottom type `never` in TypeScript
In this blog post, we look at the special TypeScript type never which, roughly, is the type of things that never happen. As we’ll see, it has a surprising number of applications.
👎1🤬1
2ality – JavaScript and more
Demo: running TypeScript directly in Node.js
Demo: running TypeScript directly in Node.js
🤬1
Sukka's Blog
为 Proxmox VE 定制 Debian Cloud 系统镜像与创建虚拟机模板
为 Proxmox VE 定制 Debian Cloud 系统镜像与创建虚拟机模板
Sukka's Blog
为 Proxmox VE 定制 Debian Cloud 系统镜像与创建虚拟机模板 | Sukka's Blog
最近在「家里云」里搞了个 Proxmox VE 8.3,打算在上面跑几个 VM 玩玩。而作为一名忠实的 Debian 系用户 我才不会告诉你我日用的 Linux 系统是搭载 GNOME 的 Fedora 的,所有的 VM 自然要用 Debian 了。借着制作自己的定制化 Debian Cloud Image 的机会,顺便写一篇文章出来和大家分享一下,并纠正、辟谣一下网上现有的有关教程的一些错误。
🤬1
2ality – JavaScript and more
The unexpected way in which conditional types constrain type variables in TypeScript
The unexpected way in which conditional types constrain type variables in TypeScript
2Ality
The unexpected way in which conditional types constrain type variables in TypeScript
The TypeScript handbook makes an interesting statement: “Often, the checks in a conditional type will provide us with some new information. Just like narrowing with type guards can give us a more specific type, the true branch of a conditional type will further…
🤬1