Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: parse Clear Filter

DeepSeek tests “sparse attention” to slash AI processing costs

Ever wonder why ChatGPT slows down during long conversations? The culprit is a fundamental mathematical challenge: processing long sequences of text requires massive computational resources, even with the efficiency tricks that companies have already deployed. While US tech giants can afford to throw more hardware at the problem, Chinese AI company DeepSeek, which is cut off from a steady supply of some advanced AI chips by export restrictions, has extra motivation to squeeze more performance fr

Lexy: A parser combinator library for C++17

Why should I use lexy over XYZ? lexy is closest to other PEG parsers. However, they usually do more implicit backtracking, which can hurt performance and you need to be very careful with rules that have side-effects. This is not the case for lexy, where backtracking is controlled using branch conditions. lexy also gives you a lot of control over error reporting, supports error recovery, special support for operator precedence parsing, and other advanced features. Boost.Spirit The main differenc

Dear String-to-Integer Parsers

These are very useful functions that any language with distinct string and integer types will include in their standard library. Pass in a string with decimal digits and it’ll return the equivalent in the binary integer form that you can do mathematics with. I’d like to make a modest proposal that I’d find very useful, and maybe you, dear reader, would too. “The rich man in his castle, the poor man at his gate. He made them, high or lowly, and ordered their estate.” Who me? Specifically, I’m

A parser for TypeScript types, written in TypeScript types

tsints a parser for typescript types, written in typescript types (no js here!) testimonials please no please I beg you — @jakebailey.dev EM WHAT THE FUCK ur deranged hell yeah i cant wait to do ludicrous shit with ts7 speeds why are you like this usage code like this import type { Parse } from "./parser/index.ts" ; type _ = Parse < "{some:[ts, 'type']}" > ; evaluates to a @babel/parser -style AST type _ = { type : "TSTypeLiteral" ; members : [ { type : "TSPropertySignature" ; key :

Topics: code parse parser ts type

JSON is not a YAML subset (2022)

JSON is not a YAML subset People on the internet believe that JSON is a subset of YAML, and that it's safe to parse JSON using a YAML parser: Following this advice will end badly because JSON is not a subset of YAML. It is easy to construct JSON documents that (1) fail to parse as YAML, or (2) parse to valid but semantically different YAML. The second case is more dangerous because it's difficult to detect. False has over "1.7e3" named fjords YAML (infamously) allows string scalars to be unqu

Topics: 1e2 json load parser yaml

Show HN: Easy Python Time Parsing

Time Helper A lightweight Python library for effortless datetime handling with timezone support. Built for simplicity and flexibility, it provides a comprehensive set of utilities for parsing, converting, and manipulating dates and times. Key Features: 🌍 Timezone-aware operations with abbreviation support (e.g., IST, PST, CET) with abbreviation support (e.g., IST, PST, CET) 🔄 Universal datetime parsing from strings, timestamps, and various formats from strings, timestamps, and various forma

Using uninitialized memory for fun and profit (2008)

Using Uninitialized Memory for Fun and Profit Posted on Friday, March 14, 2008. This is the story of a clever trick that's been around for at least 35 years, in which array values can be left uninitialized and then read during normal operations, yet the code behaves correctly no matter what garbage is sitting in the array. Like the best programming tricks, this one is the right tool for the job in certain situations. The sleaziness of uninitialized data access is offset by performance improveme

Haskell, Reverse Polish Notation, and Parsing

My Side Quest into Haskell, Reverse Polish Notation, and Parsing 26 Jun, 2025 My Journey into Haskell: Building a Reverse Polish Notation Calculator Introduction: A Side Quest In my attempt to get my first paycheck, aka get a job, I have led myself down a fascinating rabbit hole into functional programming, mathematical notation, and parsing theory. This is the story of how I discovered Haskell, tackled reverse Polish notation, and learned about monadic parsing along the way. My journey bega

Unexpected security footguns in Go's parsers

In Go applications, parsing untrusted data creates a dangerous attack surface that’s routinely exploited in the wild. During our security assessments, we’ve repeatedly exploited unexpected behaviors in Go’s JSON, XML, and YAML parsers to bypass authentication, circumvent authorization controls, and exfiltrate sensitive data from production systems. These aren’t theoretical issues—they’ve led to documented vulnerabilities like CVE-2020-16250 (a Hashicorp Vault authentication bypass found by Goog