Toby Allsopp
273 posts

Toby Allsopp
@toby_allsopp
Ex-organiser of the Auckland C++ Meetup. Gopher. He/him.
Auckland, New Zealand شامل ہوئے Eylül 2009
153 فالونگ327 فالوورز

News | New Zealand-based cricket fans will be able to watch the BLACKCAPS and WHITE FERNS’ home internationals across Sky’s platforms from the 2026-27 season. Read more ⬇️ nzc.nz/news-items/nzc… #CricketNation
English
Toby Allsopp ری ٹویٹ کیا
Toby Allsopp ری ٹویٹ کیا


@code_report @ben_deane @phil_nash @tristanbrindle @odinthenerd I gave a talk back in 2018 with a similar definition: youtu.be/_x1EvX-q3QU?t=…

YouTube
English

C++ Twitter? Have you seen in a talk or given a talk with the following code example? ⬇️ I swear I have seen this 3 or 4 times in different talks but can't find any (after checking ~10).
@ben_deane @phil_nash @tristanbrindle @odinthenerd
godbolt.org/z/saGWh8P5r

English

@TaeKahn @code_report I don't follow, what did you mean to write then? Note that omitting the & operator will still take the function's address.
English

@toby_allsopp @code_report Yes, it was a typo.
Taking the address isn't required here.
Its rare that i'm willing to delete a tweet to fix a typo.
English

@TaeKahn @code_report Not sure if you're aware, but it is not permitted to take the address of standard library functions (with a few exceptions). See #Addressing_restriction" target="_blank" rel="nofollow noopener">en.cppreference.com/w/cpp/language…
English

@code_report std::inclusive_scan(v.cbegin(), v.cend(), v.begin(), &std::max<int>);
......just because you've never read the standard library....
English

@meetingcpp The indexes are not correct. If you fix that then it's the same as visit (and can be simplified to use get rather than get_if): quick-bench.com/q/TTSlqnz7S0KR…
English

But there is a faster way, doing a switch(index()) removes the if/else nightmare. When then changing to std::get I get a timeout though.
quick-bench.com/q/sB0-3axOAnkz…

English

Wondering how to access a variants members, get_if is so much better then visit?
quick-bench.com/q/2TU5-QJ4fpCX…
#cpp
#cplusplus


English

@ericniebler If you want to keep all of the conflict resolutions from the commit you've already made, you can do `git merge -s ours <commit-hash>` to create a merge commit that doesn't make any actual changes.
English
Toby Allsopp ری ٹویٹ کیا

@tvaneerd This reminds me of a video about the code review process at Jane Street, where they talk about committing the review comments themselves as comments in the source code. janestreet.com/tech-talks/jan…
English
Toby Allsopp ری ٹویٹ کیا

Here's a progressive coupon for my book, C++ Best Practices, good for 36 hrs from now.
The coupon starts at 9.99 USD. For each retweet this gets, I'll reduce the price by 0.01 USD.
The maximum reduction is 700 retweets @ 2.99 USD for the book!
leanpub.com/cppbestpractic…

English

@TartanLlama @seanbax The problem (well one of the problems) you'll run into is that with c++ coroutines you can't invoke the continuation more than once, which I imagine is needed for parsing lists, for example. Maybe you can avoid that when using parser combinators?
English

@seanbax For abusing the customisation points of coroutines to use them like general syntax for monads, like this github.com/toby-allsopp/c…
English
Toby Allsopp ری ٹویٹ کیا

I'm looking for people excited about working with Rust to join me in developing performant software for photographers, get in touch if this sounds like you! Based in Auckland, NZ.
narrative.so/job/rust-engin…
English
Toby Allsopp ری ٹویٹ کیا

Announcing Pure Virtual C++ Conference 2020: a free single-track one-day virtual conference for the whole C++ community on April 30th. Sign up here visualstudio.microsoft.com/pure-virtual-c…
#purevirtualcpp
English






