« first day (1497 days earlier)      last day (1990 days later) » 

2:20 PM
@E_net4 what's the backstory on your new name
 
2:57 PM
@Shepmaster Nothing that you don't already know. :)
 
@E_net4iskindandwelcoming XD
 
It might also be actually perceived like this regardless, since I have to reduce my activity here.
And as we know, many people see curation as unwelcoming.
 
@E_net4 Nice pseudo. Maybe I should also add this too. Maybe you're at the root of something big.
 
motherboard.vice.com/en_us/article/a3mgxb/…, some people don't know what they are talking about
 
Is there somewhere a discussion about the macros written as a method? I'm pretty sure I've already seen that. Something like foo.call_to_my_macro!("test")
 
3:09 PM
@Stargateur I read that article last weak on my way to work, what bothers you with that article?
> "disclosure: Rust’s primary sponsor is my employer, Mozilla" :D
 
@hellow Because Rust doesn't solve the problem as you can do unsafe block
also memory is not the only problem, logical error are also critic
and of course "By allowing these types of vulnerabilities, languages such as C and C++ have facilitated a nearly unending stream of critical computer security vulnerabilities for years"
wtf, C and C++ don't promote error XD
 
Yes, but IMHO if you don't have to worry about crap like memory errors, you can focus on logical things. And I really love rust in the way how easily it is to write unit tests. Ever did that in C++? Pita...
 
That doesn't solve the problem code are write by human and human sux
 
C and C++ are not for every one but a lot of people use them without have enough skill
 
@Stargateur True...
 
@Shepmaster "postfix" was the word... thanks. The proposal seems burried :(
 
@Boiethios I knew it was there and still took like 5 minutes to find it
 
@Boiethios The idea isn't very original. One may find memorable display names of this sort before this one.
Much to my sorrow, there is at least one such case that we won't see in the future.
 
3:33 PM
@E_net4iskindandwelcoming I dunno what you are talking about
 
3:44 PM
@Shepmaster :(
On a side note, I got some virtual Meta points by posting a meme. How appropriate.
 
@E_net4iskindandwelcoming he finally delete his account sad
 
 
1 hour later…
5:07 PM
I just found another misuse of today. It's fix'd.
 
5:37 PM
@E_net4iskindandwelcoming FWIW language: sh should be for actual shell scripts, not interactive shell transcripts
 
@Shepmaster Oki. :x
Can you reproduce the problem, though? I can compile rust-crypto just fine.
 
Personally, I'm completely flummoxed by stackoverflow.com/questions/53378780/…
@E_net4iskindandwelcoming nope, but 10.10 is really old at the moment
 
@Shepmaster I say we close it as not reproducible. It seems to me that the actual problem wasn't even int the question's code.
 
6:06 PM
0
Q: Function pointer with a reference argument cannot derive Debug

Johan BjäreholtI have a enum where I want to generalize an function pointer. As soon as I add a reference inside the function pointer definition. it fails to compile because it cannot print it with Debug: fn div1(t: i64, b: i64) -> i64 { t / b } fn div2(t: i64, b: &i64) -> i64 { t / b } #[derive(Debu...

@E_net4iskindandwelcoming GAT strike again ? ;)
 
@Stargateur No GATs here AFAIK.
But you're right, it totally needs more GATs.
 
I think it might need the next step after GAT.
 
6:50 PM
Note: There is no pointer of function in Rust — Stargateur 42 mins ago
This... is misleading.
 
Indeed — What do you mean by that @Stargateur?
the type fn() is a function pointer
 
I read somewhere function can't be null so there are reference no ?
maybe I miss something
 
@Stargateur If you make a functor through some type T: Fn*, that indeed cannot be null.
 
7:11 PM
Oh, are you just making a distinction on the word pointer?
I suppose that's accurate, but I don't think people would usually make that point
And indeed, you'd need to have Option<fn()> to represent a missing one
 
8:01 PM
@E_net4iskindandwelcoming father please
 
@набиячлэвэли Yes?
 
@E_net4iskindandwelcoming Here on down :v
 
@набиячлэвэли Yeah, what about that? :x
 
@E_net4iskindandwelcoming >your call
 
Oh. :x
Does the message get any better if you do assert!(size_of::<bool>() == 1)?
 
8:09 PM
thread 'main' panicked at 'assertion failed: size_of::<bool>() == 2', p:\Rust\safe-transmute-rs\src\bool.rs:23:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@E_net4iskindandwelcoming it's descriptive, but unhelpful
 
Assert takes a third arg you know
Message to print. Might even accept formatting args?
 
2 days ago, by набиячлэвэли
 P:\Rust\safe-transmute-rs\asdf>target\debug\tsett
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`: unsupported platform due to invalid bool size 1, please report to <GH issue link>', P:\Rust\safe-transmute-rs\src\bool.rs:22:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
this is effectively a ~bikeshed~
 
 
1 hour later…
9:23 PM
Quick question: Changing a crate to edition=2018 will change the rustc minimum version, but won't cause rippling issues w.r.t. the module system or anything else, right? I thought that was kind of the point of applying it crate-level.
Someone filed an issue against nom, and is having an issue with some macro imports - They seem unclear as to how that change works, and I want to be sure I'm clarifying the issue correctly. I'm also not entirely clear on how to solve their issue, since I think they were expecting the imports to 'just work'
And the issue seems to be in exported macros invoking not-exported macros, and some interaction between that and the 'new' module system.
 
@Zarenor Oh, so the question is whether importing macros from a 2015 crate should work fine even in a 2018 dependent?
 
Uhhh.. Let me link you the issue...
The issue they're having is with something not working quite right. `nom` should still be on 2015. The issue I take is with the person using 2018 mayyyybe being a little misinformed about how the changes work, and what they do and don't break.
It's possible more explanation would fix their issue, but I suspect not. I mostly want to clarify how changing nom to edition=2018 is a min-rustc-ver bump, but otherwise not breaking. And I *thought* that was a guarantee.. Not that it would break something else as they seem to be implying might happen.
 
@Zarenor Using libraries still in the 2015 edition on top of the 2018 edition should totally work. That issue could use an MCVE.
 
9:43 PM
@E_net4iskindandwelcoming Alright. I finished writing my comment in light of that. I was suspicious that there was something a little off. If you don't mind, can you read and sanity-check my comment?
And geez, that username change. XD
 
Looks fine.
FWIW I managed to use nom macros in another 2018-edidion'd project.
@Zarenor What change? :)
 
XD
I don't know. You just seem....
Kinder?
Maybe a little more welcoming? Might just be me...
 
@Zarenor this should be correct.
 
@Zarenor That didn't change. ;)
 
@Zarenor What's probably happening is that they aren't using macro_import in 2018 because they got rid of extern crate
err
macro_use
?
I literally forget now.
#[bring_in_the_dancing_macros]
extern crate foo;
(which they can still choose to use)
but I'm guessing that nom expects that you will have imported every possible macro.
This isn't a 2018/2015 specific thing though
 
9:55 PM
Yeah, `macro_use`. If you read my comment, I went and did my homework after E_net4 checked that I was sane. The macro change and the `::`
...
What you're saying
(3rd edit's the charm)
 
Rust 1.30 allows importing macros this way as well
Feh; why should I read important details
 
Nah. No big deal. Just I basically covered that - the 2018 edition isn't really involved in this issue either way, and I can't point at what is, because you (issue-writer) didn't show us the use statements.
 
10:11 PM
Is this a true statement
For something to be inefficient, there needs to be some technique that is more efficient. — Shepmaster 3 mins ago
@Zarenor FWIW, GitHub has the ability to save common snippets in their editor. You could make the equivalent of my “please make a MCVE” comment, putting a lot of effort into it once
 
10:24 PM
@Shepmaster Depends on the definition of efficiency. As a physicist, I'd say no. Efficiency is a pretty well-defined metric, and we'd generally call everything 'inefficient', relative to some inexistant ideal of efficiency wer phytsicists like to talk about
@Shepmaster As a programmer, I think I'd agree with your statement.
(Is that a fair dichotomy?)
 
10:41 PM
The pedantry displayed clearly marks you as a programmer 🤓
 
This memory allocation Q reminds me of flexible binary formats such as MessagePack.
Everything is inline, and it does support variably-sized elements in arrays and map values. But I wouldn't call it a good format to work with in memory.
 
@E_net4iskindandwelcoming what’s the big O on access though?
 
10:56 PM
@Shepmaster The point is that MessagePack is deserialized before use.
 

« first day (1497 days earlier)      last day (1990 days later) »