« first day (1855 days earlier)      last day (1854 days later) » 

08:18
Anyone here knows the Tribo game ? I'm organizing the next Annual competition next week
@DenysSéguret tribogamer.com/noticias ?
1. this is not english
No: the Tribo game which is hosted in Miaou
what is it so ?
It's a board game I invented. Every year there's a "World" competition with about a dozen participants
08:22
If you come to Miaou I'll show you
The competition is about two dozens games per contestant over one week
not very interested but thanks
08:56
posted on November 12, 2019 by Federico Mena Quintero

After an epic amount of refactoring, librsvg now does all CSS parsing and matching in Rust, without using libcroco. In addition, the CSS engine comes from Mozilla Servo, so it should be able to handle much more complex CSS than librsvg ever could before. This is the story of CSS support in librsvg.

 
3 hours later…
12:19
@trentcl Late to the party, I've been swamped. Rigorous, ahead-of-time testing relies on a couple of not-so-easy guarantees in software, one of which being a spec.
 
2 hours later…
14:13
@SébastienRenauld this case has a spec in the form of another implementation. The op was asserting that the two were close enough during every call.
I'm going to be totally honest, having read the post I don't see why a test module isn't enough to cover this
particularly in the case where you have a "known", independent truth value
@SébastienRenauld point
If it was a real debugging assertion then this point holds
say, when interacting with a black box device of some sort
but in this case it's 100% wrong to layer assertions like this when you know the reference implementation
14:30
The thing about specs is that it's not usually that you get a spec from the system designer and it has all the requirements enumerated 1(a), 1 (b), etc. and it's just a matter of implementation. Usually you get an ad-hoc list of requirements and you write a spec that you intend to implement
The key is publishing your spec early so that when somebody says your module is doing the wrong thing, you can point to the spec and say "it's been in there since September, why didn't you say something then?"
Software engineering has not, as a discipline, yet achieved this degree of blame-shifting
The best reading I can get for that OP is that they don't feel like they are able to generate good testing inputs for their function under test. However, they do feel that they are able to generate good input to some other function which calls the interesting function.
14:56
I don't think I paid enough attention to async/await in development. Actually using it now, I wish they had made async a modifier for the return type instead of the function itself.
@PeterHall i.e. fn foo() -> async String { /* ... */ }?
@Shepmaster Yes
hmm
I dunno about that
would it make sense anywhere else a type is?
There was enough hand-wringing about foo.await vs await foo, maybe that change would have been a bridge too far...
@trentcl I'll be honest, I've actually gotten in trouble for doing this
as in, spec something months ahead of time
and then people come last minute and tell you it wasn't what they wanted
and you literally cannot get them to admit they didn't look at the spec until a week before the deadline
I'm having exactly this right now
deadline for a huge rollout is thursday; beta has been out for 3 months now
guess when the feedback loop started
@Shepmaster Yes, it can be seen as a synonym for Pin<Box<dyn Future<Output = String>>> or whatever it desugars to
@Shepmaster It would have needed to have been quite early. I imagine it was discussed
15:04
@PeterHall just impl Future<...>
Can't Box in no-std
And it's deliberately not pinned, as it can move around still
it only gets pinned when the executor starts polling
It makes more sense in the return because it's the return type that actually gets changed
and it's an effect. which is tied to the return type, not the function itself
oh, using the E word. Dangerous
but it's not only tied to the return type, if I understand what you are saying
this is difficult for me to put into words though.
It's no less tied to return type than a Result (which also has it's own syntax - ?)
the async modifier performs a transformation on the entire body of the function though.
But that is not part of its interface
I'd say it's more intrusive than unsafe or const, for example
That's only know to the implementor of a function. not a caller
It doesn't affect the interface of the function. except for the return type
the ? operator also rewrites part of the function (albeit far more locally)
16:05
@SébastienRenauld Approximately yesterday?
I think in hardware that's more the expected way to do things
Probably also some corporate culture differences in effect.
16:45
@PeterHall BTW, great answer to stackoverflow.com/questions/58782928/…
> In two words: no
That's only one word ;-)
's two words! 'no' is short for "not onestly"! XD
Ah, the ol' British accent coming through.
In two words ? (this game sux BTW never buy it)
@Zarenor It's actually short for "nob off"
But I'm a bit baffled by someone asking for an explanation in two words. Given that they haven't managed to understand sufficiently from the many preceding words, how could they expect two words to induce an epiphany?
17:03
Hahahaha
After some sleep... Peter, can you please explain in two words why compiler requires me to annotate lifetimes, even if it can prove their correctness? Why wouldn't it "annotate" them without my help then, if it's so smart? — Nurbol Alpysbayev 2 days ago
my mother would have answer "because"
17:20
this might be two very long words
but still one word
Dociousaliexpiesticfragicalirupes
perfect
 
4 hours later…
21:43
-1
Q: enum match against variants

nbariI would like to optimize and remove what it looks like "redundant/unused" code for this cron expression parser library, mainly the section regarding the day of week dow. It works like this: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9718dc5e1aed140e24f43fd5cf56d10c ...

I must be missing something from this OP
They've identified that they have duplicate/redundant code... but haven't realized that they should just delete one of them... ?
22:18
Ack, I forked up my rust tropes repo and lost my source coedz
Good thing I'm almost done rewriting these parts.
 
1 hour later…

« first day (1855 days earlier)      last day (1854 days later) »