Sign in with Twitter

Username:

Ingvar Stepanyan @RReverser Ukraine ➩ London

Obsessed D2D programmer (parsers, compilers, tools & specs). 🥑.wasm (WebAssembly Advocado) @Google, previously broke the Internet more than once @Cloudflare.

858 Following   5,176 Followers   32,399 Tweets

Joined Twitter 12/17/09


@WebReflection @DasSurma Ok. What code did you use to produce that array of bytes you were asking about? @WebReflection @DasSurma As mentioned in another reply, it rather sounds like you're solving the wrong problem, so I'll wait for details :) @WebReflection @DasSurma (this whole thread sounds more and more like XY problem and it would be really helpful to… https://t.co/VSUYkp1Rbj @WebReflection @DasSurma Okay this is really confusing :) Can you explain again which part you're trying to represe… https://t.co/bkgJUFwjOJ @WebReflection @DasSurma (of course, if possible, I'd suggest not using strings in this context at all) @WebReflection @DasSurma But if you really need to convert binary data to JS string, then you need to use old good… https://t.co/xuT2FKq5ET @WebReflection @DasSurma No, it just means that you're trying to decode arbitrary binary data as an encoded text co… https://t.co/NK612I5F9C @WebReflection @DasSurma Well your question wasn't initially clear :) So the only way then is to perform manual con… https://t.co/BLQ4zo7FP7 @WebReflection @DasSurma (ah wait, no, TextEncoder isn't supported for UTF-16) @WebReflection @DasSurma What do you mean "go back to source"? From what? `dest`? If so, the only way is to re-enco… https://t.co/HIuJth2Qx8 @Scott_Helme If you're on roaming, then your traffic is routed via UK - maybe that's the reason? @mgattozzi @CuddleViper Nope, the other way around (as noted below). `Sized` is almost never necessary. @mountain_ghosts Check out plotters? https://t.co/ZxYU1nYBUw This is what criterion uses nowadays if Gnuplot is not present. @Sunjay03 I've seen it in some other crates myself before, which is why decided to add here as well. The diff looks so much cleaner :) @myrrlyn My point is that you need these tests either way for crates that use something more complicated than alloc… https://t.co/PZ3H2pWgAC @myrrlyn > has either defer unresolved name errors until target selection That's what compiler already does with extern functions 🤷🏻‍♂️ @myrrlyn In this model crate author should still add tests for targets without std support (just like authors have… https://t.co/P9usSe4wlq @myrrlyn But that's still fine, as long as the references to these types don't survive DCE. If they do, then user w… https://t.co/xGUSS9k31F @matborowiak I was thinking more along lines "the difference will depend on particular regex engine, and, correspondingly, JS engine used". @myrrlyn In "my" model, you don't need to do either - you can keep using `std` methods as before, and leave figurin… https://t.co/mjJ5Tz0nio @matborowiak "It depends". What did I win? 😀 @myrrlyn See my follow-ups. In this model you could define `BitVec` unconditionally, and user just wouldn't be able… https://t.co/wMsnL1JAV2 @myrrlyn Mayyyybe we'll still need some escape hatch attribute that turns unavailable imports into runtime panics,… https://t.co/ite7JNopbj @myrrlyn This makes it much more natural both for crate authors and for users, as any unavailable API is just caugh… https://t.co/M59akEebPf @myrrlyn Instead, I'd much prefer link-time verification by the compiler itself, where crate can do anything it wan… https://t.co/EdmHNgsoz6 @myrrlyn IMO the right solution is not to put this onto the authors of the crate at all. It has been already seen h… https://t.co/5Lz0S3BwdK @myrrlyn If you split std into enough crates, you don't need `feature = ...` at all. @myrrlyn This (except I'd prefer `extern crate` instead of attributes - there's no need for magic here). @rustlang Now with no_std support (thanks @CryZe107!).
2/17
2020
@CryZe107 @rustlang Ah, well. I have... opinions about usefulness of no_std approach. But if you want to make a PR,… https://t.co/aDmYaVFPrj @CryZe107 @rustlang I wished for it to be in std so many times (and surprised that methods don't return Cow by defa… https://t.co/moCSPfXbfhI wrote variations of these string manipulation utils so many times in various projects, so... Introducing cow-uti… https://t.co/JgzckYvGFPWelp. https://t.co/UgZLEOqNJy
Retweeted by Ingvar Stepanyan @KevinHoffman Can you enter your PIN number in this ATM machine though? @_developit ...I can't get enough @gibson042 Sure, it's fun, but that one at least isn't context-dependant :) @mikesherov @tlakomy The math didn't seem to add up, so I checked the post and it says "5 2x devs" :P @hsivonen Oh my god why? From reading the comment, I thought one char should be enough for determining end of the word? @RReverser The screenshot doesn't show the worst part: the number of character that have to be examined to decide w… https://t.co/VVQUE06bah
Retweeted by Ingvar Stepanyan
2/16
2020
@leszekswirski @hashseed @mathias @_jayphelps @ChromeDevTools > Also variable and function declarations Only assum… https://t.co/BWzJyyhOOD @femyeda I don't think == vs === or or ASCII are relevant to that tweet / code.Luckily, this relation is 1:2, so at least the reverse transform (uppercasing) is more straightforward. https://t.co/MVU8veJRkiWhat this particularly means is that https://t.co/oQET6dlaiX_lowercase() is, counter-intuitively, *not* the same as… https://t.co/KxrGSf5XSrHuh, TIL. Reading code for string manipulation APIs in various languages never stops revealing interesting edge cas… https://t.co/kZ5w8egLdG
2/15
2020
no https://t.co/Dbt0gYJaLz
Retweeted by Ingvar StepanyanDownshifting advice from @rustlang: https://t.co/FPvjOCesnr
2/14
2020
@orta What about meta refresh tag? (still a bit worse than HTTP header, but better than nothing I guess) @orta Happy to hear it's on the roadmap anyway :) @orta Huh, didn't think that would be hard. What's the issue? If it's a general domain/website management bureaucra… https://t.co/1dJfncqaGYWhoever owns https://t.co/l5yJphspPm, can you please set up a HTTP -> HTTPS redirect (or even HSTS)? cc @orta https://t.co/8Wes2ul8V9 @dalmaer @_developit @jaffathecake @kosamari "BUNdler for tiNY apps" @ejcx_ @ericlaw @blowdart Did you push the Turbo button yet? @TheTasteOfALiar Making climate change top of mind for more people fights climate change doesn't it? It's a politi… https://t.co/ZEWRIWPVTa
Retweeted by Ingvar Stepanyan @vincesalvino @benj_fry @yaahc_ Ohh I use Power Shell daily, but didn't know this. Pretty cool, thanks.https://t.co/LzD4uKvLk1 Interesting idea - a WebRTC based file transfer tool to send files from one computer to an… https://t.co/TTGgUWht62
Retweeted by Ingvar Stepanyan @rowan_m God Rowan of a mere wood?I'm quitting tech to become an engineer for a few days 😐 https://t.co/PbliZipwyr @VinayTaylor @gabriel_micko @kosamari I don't know much about it. How does it solve this problem? AFAIK the only so… https://t.co/jn2udz08JbTwo weeks, five hotels, three regained and another two lost personal items... time to leave. Bye, Bay Area! @benj_fry @yaahc_ Oh, I don't care about multiple processes or collection, I meant just shell-level redirection to output file for stdout. @rowan_m @DotProto That's what everyone says about any new fashion 😝 @benj_fry @yaahc_ I mean, I'm not using any async abstractions or threads, just good ol' plan println! / eprintln!. @benj_fry @yaahc_ I have no idea what you're talking about in the first sentence tbh 🤔 @mx00s @benj_fry @yaahc_ It doesn't exist, that's why I said "we should have" them :) @mx00s @benj_fry @yaahc_ Yeah for debug stuff. @benj_fry @yaahc_ To the OP's tweet though, I'd argue that we should have stdout, stderr and stdlog to keep everything separate :) @benj_fry @yaahc_ E.g. whenever I'm writing yet another tool, initially I'm just lazy and use println! for regular… https://t.co/2AmQXIALva @benj_fry @yaahc_ It's useful exactly for cases when you want to output some debug info that you don't want caught :) @mayhplumb @GretchenAMcC Staff nights out were held in this bar https://t.co/NdSO7xrOT8
Retweeted by Ingvar StepanyanDammit, Google, just stop ignoring words. When a user searches for "[Product Name] [very specific query]", they *do… https://t.co/ghstD6joE7And you can do this in Rust too these days with a cross-language LTO. https://t.co/TP5OOYDMlD @gabriel_micko @kosamari Yeah. @kosamari Ability to use on desktop / without phone. Too few apps support this nowadays.
2/13
2020
@steveklabnik @mgattozzi IIFE @steveklabnik @mgattozzi 😂 https://t.co/LhQgS2e5k4 @jgrahamc @Cloudflare @wasmsf The photo board with employee pictures at the SF office. Looks like it was created so… https://t.co/7tlGsRWtPU @mitsuhiko @SimonSapin As in, if some code uses global RefCell to store some dynamic data (as some libraries do), t… https://t.co/fakmBN5Fbm @mitsuhiko @SimonSapin The API looks pretty cool! Although, is it a concern / should it have a documentation warning about global state? @binjimint @luke_wagner As a follow-up, I don't suppose there is any backwards-compatible way to add and use such form now? @Cloudflare @wasmsf @jgrahamc what's even going on here? 🤔 https://t.co/rtsnKtelsNAnd now @YIozzelli is talking about compiling Flash to WebAssembly at @wasmsf l. @brionv, you should talk and make… https://t.co/V11vNTDH9jAll roads lead back to @Cloudflare 😂 Hello, @wasmsf! @lgarron Internationally transit can be up to often faster than driving, too :)I have a personal rule to take transit if it's no more than 50% longer than driving/rideshare. Internationally, th… https://t.co/M4DLhxsQdN
Retweeted by Ingvar StepanyanFirst Muni didn't show up on the scheduled time. Second came at the scheduled departure time; then driver said he's… https://t.co/ObMBZavZHwAs a proponent of a public transport, decided to take a Muni in San Francisco since it showed up as reasonable time… https://t.co/DPk1g4k2ij @kosamari I guess the idea is that you might have subscribed to the newsletter before buying the mattress.👏 https://t.co/YXaWP3ZCB8 @rauschma Needing a function callback. I need to create an array from WebAssembly side with given 4 values, and whi… https://t.co/qr8SAIlC23 @MaxGraey Yeah I know the pitfalls, hence the ironic tweet. But I have specifically 4 args so doesn't matter too mu… https://t.co/w3ijGoZ9Gs @bradleymeck Ah yeah, I guess I could use Array.of here too. Not that it matters *too* much for multiple params.Oh no I just used `Array(a, b, c, d)` JavaScript constructor overload and it still looks like the best solution 😨
2/12
2020
@rowan_m (erate) @rowan_m shit @rowan_m Wait I thought it was supposed to be the other way around (me answering with that). @_jayphelps @Rich_Harris It is amazing! I'm surprised how well it works given how crazy / hacky the idea behind it is :D @rowan_m I'm ready! :)"ship and iterate (a.k.a. shiterate)" 😂"It's not a triangle of doom, it's a tetrahedron of doom." (c) Andreas Rossberg @ WebAssembly CG meeting @billticehurst Idk, I was staying at a simple apartment via Airbnb and walking around quite a lot. Definitely not bars though :)
2/11
2020

0