1. Delete FROM users WHERE location = 'Iran'; (gist.github.com)
DELETE FROM users WHERE location = 'IRAN';. GitHub Gist: instantly share code, notes, and snippets.
50 篇热帖
DELETE FROM users WHERE location = 'IRAN';. GitHub Gist: instantly share code, notes, and snippets.
Sometimes the people who need invitations most are the ones who always decline them.
Brutalita Sans 是一款实验性字体及其配套的在线字体编辑器。
Ruby Central recently took over a collection of open source projects from their maintainers without their consent.
Qwen3-omni is a natively end-to-end, omni-modal LLM developed by the Qwen team at Alibaba Cloud, capable of understanding text, audio, images, and video, as well as generating speech in real time. - QwenLM/Qwen3-Omni
I tweeted years ago; Boarding houses were made illegal by zoning that enforced single family homes and by rules limiting occupancy, demanding every room have a private bathroom, outlawing shared kitchens, requiring parking spaces for every resident etc. How States and Cities Decimated Americans’ Lowest-Cost Housing Option is an excellent, hard-hitting piece making and extending […]
Contribute to humanlayer/advanced-context-engineering-for-coding-agents development by creating an account on GitHub.
# 采样与结构化输出在大语言模型中的概述
大语言模型(LLMs)的输出生成过程主要涉及**采样策略**与**结构化输出控制**两大核心机制。
## 核心概念
1. **采样**:指从模型输出的概率分布中选取下一个词元的过程,直接影响生成内容的多样性、质量与一致性。
2. **结构化输出**:指引导模型生成符合特定格式(如JSON、XML、表格、列表等)的内容,以提高输出的可解析性和实用性。
## 关键技术与目的
- **采样方法**:
- **贪心搜索**:始终选择概率最高的词元,输出确定性高但可能重复单调。
- **束搜索**:并行探索多个可能序列,平衡质量与多样性。
- **随机采样**:根据概率分布随机选择词元(如温度采样、Top-K采样、Top-P采样),能生成更多样和富有创造性的文本。
- **温度参数**:调整概率分布的平滑度,高温增加随机性,低温趋于确定性。
- **结构化输出方法**:
- **提示工程**:在输入提示中明确指定输出格式和要求。
- **约束解码**:在生成过程中强制将输出限制在符合特定语法规则或模式的词元序列内。
- **后处理与解析**:对模型生成的自由文本进行格式清洗或转换。
## 主要应用场景
- **需要精确格式的数据提取与转换**(如生成API响应、数据库查询)。
- **自动化的表单填写或报告生成**。
- **与外部程序或系统集成**,要求输入输出具有严格的数据结构。
## 面临的挑战
- **权衡质量与约束**:过于严格的格式约束可能损害输出内容的自然度和质量。
- **采样与确定性的平衡**:不同的采样策略需要在创造性、准确性和稳定性之间做出权衡。
- **解析的可靠性**:即使指定了格式,模型仍可能生成不符合要求的输出,需要稳健的解析机制。
总结而言,采样策略决定了LLM如何生成文本序列,而结构化输出技术则旨在确保生成结果满足特定的格式规范,两者共同服务于提升LLM输出的可用性与可控性。
x402 is the internet's payment standard. An open standard for internet-native payments that empowers agentic payments at scale. Build a more free and fair internet.
As a data format, yaml is extremely complicated and it has many footguns. In this post I explain some of those pitfalls by means of an example, and I suggest a few simpler and safer yaml alternatives.
There are over 200 recordings of the Bach Cello Suites to choose from. Read our reviews to give you a better idea of which your may prefer.
Despite a surge in generative AI use across workplaces, most companies are seeing little measurable ROI. One possible reason is because AI tools are being used to produce “workslop”—content that appears polished but lacks real substance, offloading cognitive labor onto coworkers. Research from BetterUp Labs and Stanford found that 41% of workers have encountered such AI-generated output, costing nearly two hours of rework per instance and creating downstream productivity, trust, and collaboration issues. Leaders need to consider how they may be encouraging indiscriminate organizational mandates and offering too little guidance on quality standards. To counteract workslop, leaders should model purposeful AI use, establish clear norms, and encourage a “pilot mindset” that combines high agency with optimism—promoting AI as a collaborative tool, not a shortcut.
Get real-time fall foliage updates and find the best fall color with our interactive map. Plan your fall trip today!
A smarter cd command. Supports all major shells. Contribute to ajeetdsouza/zoxide development by creating an account on GitHub.
本文作者认为,在开发实际的命令行工具(CLI)时,Zig 语言比 Rust 更为实用和高效。这主要基于两者在内存管理、开发体验和对“软件安全”定义的不同取向。
内存管理机制:
GeneralPurposeAllocator)和 defer 语句进行资源清理。这种方式更直观,允许开发者自由分配、存储指针并修改数据,而无需与生命周期“缠斗”。它将责任置于开发者身上,要求纪律,但换来的是更简单、更易推理的代码。实践案例:笔记 CLI 工具:
Rc/RefCell)。对“软件安全”的再思考:
开发者体验与哲学:
comptime),要求开发者负责但不过度干预。作者认为,这尊重了开发者的能动性,将他们视为能通过实践学习并改进的“成年人”,而非需要编译器时刻监督的“孩童”。这带来了更佳的开发工效学,让编码过程更愉悦、高效。对于作者所构建的小型、实用的 CLI 工具而言,Rust 的严格性可能“过犹不及”,导致开发效率降低。而 Zig 凭借其轻量、直接和对开发者的信任,在提供必要内存安全控制的同时,允许更快地迭代和编写易于理解的代码,因此显得更为实用。最终,语言选择应契合工作流和项目类型——在此场景下,Zig 击中了“甜蜜点”。
Alex Moon is an Australian-British software engineer and artist based in the North East of England.
Forty-five Maine prisoners are currently working remote jobs for outside companies. A few are working full-time, earning more than corrections officers. One is making well into the six figures. Here's why Maine's approach to education and work in prison is making waves in the world of corrections.
People should spend less time learning DSA, more time learning testing.
Disney says "thoughtful conversations with Jimmy" led to show's return.
A federal judge has ruled that a nearly complete offshore wind project halted by the Trump administration can resume, dealing President Donald Trump a setback in his ongoing effort to restrict the U.S. offshore wind industry.
Strategy – how to be strategic, and how to be seen as strategic – is one of my ongoing obsessions. Years ago, I read Good Strategy/Bad Strategy, and it’s guided my thinking ever s…
Section 1. Antifa as a Terrorist Threat. Antifa is a militarist, anarchist enterprise that explicitly calls for the overthrow of the United States
Astronomers have long relied on supercomputers to simulate the immense structure of the Universe, but a new tool called Effort.jl is changing that. By mimicking the behavior of complex cosmological models, this emulator delivers results with the same accuracy — and sometimes even finer detail — in just minutes on a standard laptop. The breakthrough combines neural networks with clever use of physical knowledge, cutting computation time dramatically while preserving reliability.
Gerrit Code Review
The court of appeals issued an historic fine after 21 of 23 quotes in the lawyer's opening brief were fake. Courts want more AI regulations.
Well, if you are reading this obituary, it looks like I’m dead. WOW, it actually happened … I died of FOMO due to complications of Bulbar ALS. My name is Linda Brossi Murphy, and I was just 60 years old when I died on Sunday evening, September 21, 2025 – way too young! As the […]
Adventures using AI agents, especially Claude Code, and MCP Servers
Abstract page for arXiv paper 2509.06917: Paper2Agent: Reimagining Research Papers As Interactive and Reliable AI Agents
Absolutely inappropriate. Brendan Carr has got no business weighing in on this."
“In evolution, a maladaptation is a trait that is (or has become) more harmful than helpful, in contrast with an adaptation, which is more helpful than harmful.” I went to Wikipedia to look that up, not a large language model.
How MCP Authentication Flaws Enable RCE in Claude Code, Gemini CLI, and More
Making vector search fast, memory-efficient, and natural in SQLite.
After all you made your apps open source, so I can remove your ads.
Learn how to extract text from audio files locally using Python, Whisper, and other powerful tools. Complete setup guide with practical examples.
OpenDataLoader-PDF 是一个开源 PDF 解析工具,专注于为 AI 提供结构化数据,并自动化 PDF 无障碍处理。它基于 Apache 2.0 许可证发布。
pip install opendataloader-pdf。在包含 200 份真实世界 PDF 的测试中,其混合模式在综合准确率、阅读顺序和表格提取方面均领先其他开源及商业解析器。
Björk talks about an early trip to the dentist, her lifelong interest in nature and technology, and what she learned from last year’s MoMA exhibition.
Permeable materials in homes can retain volatile organic compounds for up to a year
SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks? - scaleapi/SWE-bench_Pro-os
Abstract page for arXiv paper 2503.15443: Are Elites Meritocratic and Efficiency-Seeking? Evidence from MBA Students