18 subscribers
40 photos
7 videos
2 files
54 links
In this channel, I will wrote my personal thoughts, experiments on different PLs and mathematics
Download Telegram
Goroutine leak profiles¶

A new profile type that reports leaked goroutines is now available as an experiment. The new profile type, named goroutineleak in the runtime/pprof package, may be enabled by setting GOEXPERIMENT=goroutineleakprofile at build time. Enabling the experiment also makes the profile available as a net/http/pprof endpoint, /debug/pprof/goroutineleak.

The following example showcases a real-world goroutine leak that can be revealed by the new profile:

type result struct {
res workResult
err error
}

func processWorkItems(ws []workItem) ([]workResult, error) {
// Process work items in parallel, aggregating results in ch.
ch := make(chan result)
for _, w := range ws {
go func() {
res, err := processWorkItem(w)
ch <- result{res, err}
}()
}

// Collect the results from ch, or return an error if one is found.
var results []workResult
for range len(ws) {
r := <-ch
if r.err != nil {
// This early return may cause goroutine leaks.
return nil, r.err
}
results = append(results, r.res)
}
return results, nil
}
λ
The usage of pointers so so crazy in Golang. To find this line, I have spent 2 hours of debugging 🥲.
When you realize your implementation don’t solve anything, just chill and wait someone to solve this issue

😶‍🌫️😶‍🌫️😶‍🌫️

It is because the source actually somehow trash. You can’t understand anything easily
when you love transfer money to yourself
PHP is doing its best. I haven’t read yet.

https://wiki.php.net/rfc/true_async
Transaction Man saves the world🫡
😁2
someone is trying to hack my server🤷‍♂️
New year with a new editor.

- Keymaps are learnt
- Plugins are installed

Ready, set, go!

Thanks for challenge to Haskell Uzbekistan

My setup here: https://github.com/abdivasiyev/nix/tree/master/modules/home/emacs
👍2
The magit is a real git magic!

I can't believe that, finally I found my best client for git🫡
👍2
After writing a few days in a ELisp, I am a master to find an incorrect parentheses with naked eye🤣
😁1
Forwarded from Denis Sexy IT 🤖
🌐 Есть такой фреймворк для строительства сайтов – Tailwind, это типа "конструктор внешнего вида" для сайтов и приложений: он помогает быстро сделать аккуратный дизайн из готовых блоков

Сам инструмент бесплатный, но команда что его строила, зарабатывала на платных библиотеках из готовых шаблонов и компонентов (готовый красивый интерфейс, бери и вставляй на сайт) и на программе поддержки от компаний и пользователей

В ноябре, в их репозитории всплыла идея: добавить на сайт специальную страницу /llms.txt – одну большую "упрощённую" текстовую версию всей документации, чтобы кодинг агенты и LLM могли легче её читать. Казалось бы: всем удобнее, меньше ошибок, быстрее находишь нужное и тп

Создатель Tailwind отказался и прямо сказал, что АИ уже ударил по их бизнесу: люди перестали заходить на сайт за документацией (-40% по посещениям), а этот трафик раньше конвертировал юзеров в платные услуги. В итоге выручка просела на 80%, уже дошло до увольнений, и делать АИ‑доступ к знаниям ещё проще – авторам страшно, потому что это может добить единственный канал продаж

Похоже, это одна из первых крупных жертв эпохи АИ в разработке: популярнейший проект, который все используют, но которому внезапно стало не на что жить

Да, кодинг с агентами работает – дальше таких будет больше, увы
Please open Telegram to view this post
VIEW IN TELEGRAM
Compiler development in OCaml

https://course.ccs.neu.edu/cs4410sp19/
🔥1
I don’t know what I am doing😵‍💫