es
Feedback

¡No caigas en manos de tramposos! Telemetrio encuentra y marca estos canales 👉 Si quieres ver la etiqueta, suscríbete

Блог*

Блог*

Ir al canal en Telegram

Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here

Mostrar más
1 985
Suscriptores
+324 horas
-117 días
-930 días
Archivo de publicaciones
#prog #python #article Jupyter Ascending: A Retrograde Development Computational notebooks have a history dating back to the late 1980s, <...>. They combine two much older, better, but less popular ideas into a synthesis which manages to be less than the sum of its parts.
17 mar 2022, 18:13

#prog #rust #rustlib Хочу отметить, что моя претензия — парсинг форматной строки снова и снова — была решена в time начиная с версии 0.3.0, выпущенной 30 июля 2021 года, причём с подходом, похожим на описанный ранее мною в блоге. Что там добавилось? Отдельный модуль format_description, который определяет пачку типов, описывающих компоненты формата — включая FormatItem и Component — и модуль formatting с трейтом Formattable, который реализовывается типами, описывающими формат форматирования даты и времени. Для того, чтобы получить формат из строки, достаточно вызвать функцию format_description::parse — или, если вы не хотите разбираться с ошибками при парсинге, макрос macros::format_description, который разберёт формат на этапе компиляции и проверит его правильность — и затем использовать результат в методах {Date, OffsetDateTime, PrimitiveDateTime, Time}::format, принимающих вторым аргументом ссылку на значение типа, реализующее Formattable.
17 mar 2022, 17:18

Таки сделал. А ещё сделал отдельный хештег parsing, а то материалов по парсингу на канале уже довольно много
17 mar 2022, 16:45

#prog #article Obliteratingly Fast Parser Combinators (pdf) Lexers and parsers are typically defined separately and connected by a token stream. This separate definition is important for modularity, but harmful for performance. We show how to fuse together separately-defined lexers and parsers, drastically improving performance without compromising modularity. Our staged parser combinator library, flap, provides a standard parser combinator interface, but generates psecialized token-free code that runs several times faster than ocamlyacc on a range of benchmarks. (thanks @clayrat)
17 mar 2022, 16:29

#prog #ml
16 mar 2022, 14:56

Давайте поговорим о прекрасном. Например, о В...
16 mar 2022, 06:58

Using Go is a no-brainer in the sense that one has to have no brain in order to even consider using it
15 mar 2022, 15:48

Вдобавок ко всему тому, что написано в статье, хочу отметить, что Entry API позволяет просто делать то, что в других языках выглядит зачастую весьма неловко: получить значение по ключу и в случае его отсутствия вставить новое значение, сконструированное при помощи функции, которая может завершиться ошибкой. Пример: fn get_file_contents( name: PathBuf, contents: &mut HashMap<PathBuf, String>, ) -> std::io::Result<&str> { use std::collections::hash_map::Entry; Ok(match contents.entry(name) { Entry::Occupied(e) => e.into_mut(), Entry::Vacant(e) => { let file_contents = std::fs::read_to_string(e.key())?; e.insert(file_contents) } }) }
15 mar 2022, 09:13

#prog #rust #cpp #java #article A Rust Gem: The Rust Map API
15 mar 2022, 09:03

Это индустриальный стандарт. То есть нечто настолько плохое, что те, кто поддались на обманчивую простоту, обиделись достаточно сильно, чтобы заставить также страдать и своих коллег
14 mar 2022, 16:35

14 mar 2022, 15:57

13 mar 2022, 15:10

Вот чего я не ожидал увидеть в оформлении Мака — так это отсылки к утилите и одноимённому языку для структурированной обработ
Вот чего я не ожидал увидеть в оформлении Мака — так это отсылки к утилите и одноимённому языку для структурированной обработки текста
12 mar 2022, 12:04

photo content
12 mar 2022, 10:57

12 mar 2022, 10:51

11 mar 2022, 14:00

#rust Хорошо-то как github.com/rust-lang/rust/pull/93827
10 mar 2022, 05:35

#prog #rust #article Parsing logs 230x faster with Rust As fantastic gravy on top of this whole situation, after a few days I realized that I needed to know exactly how much it would cost. With each log file taking about 23 seconds, and there being about 500 log files per day, it seemed like I would need about 350,000 seconds of Lambda execution time per month. Then, when I went to look up Lambda pricing, I noticed that it has a free tier: 400,000 seconds per month. So in the end, it seems like I’m parsing 500GB of logs per day… for free. 😆
09 mar 2022, 12:45

А помните, был такой коронавирус?
08 mar 2022, 16:39

Блог* - Estadísticas y analítica del canal de Telegram @dereference_pointer_there