|
Peeny Cheez posted:
code:
|
# ? Jul 26, 2018 20:37 |
|
|
# ? Oct 13, 2024 15:23 |
|
Bloody posted:
Also I forgot to put the '-f' in the example. I belong here. Ellie Crabcakes fucked around with this message at 20:48 on Jul 26, 2018 |
# ? Jul 26, 2018 20:45 |
|
Peeny Cheez posted:It's not the worst solution but as the files get larger it'll get poopy. Yeah I mean for large sets you'd want to set it up properly with a hash set and for Big Data you'd do, uh, a series of smaller hash set checks applied in parallel?
|
# ? Jul 26, 2018 21:02 |
|
Jowj posted:ah I miss-typed. I said "why my new lines aren't triggering" and i meant my new lines of code, rather than literal new lines. how do you mean lines of code not triggering? if its breakpoints not being hit make sure you're in debug mode instead of release mode. release mode optimizes your code and deletes statements that it doesn't like so if you have debugging garbage it will just skip over it. also lol good luck. if you can swing it, switching the logging to nlog or some other logging lib would absolutely be the best way to fix this.
|
# ? Jul 26, 2018 21:11 |
|
TheCog posted:At the risk of sounding ignorant, what is a p-lang? perl, python, php, ruby, etc... bad Linux languages
|
# ? Jul 26, 2018 21:12 |
|
Peeny Cheez posted:It's not the worst solution but as the files get larger it'll get poopy yeah for sure. the problem space is limited to four text files each a hundred lines long that I wanted to gently caress around with earlier today so I feel good
|
# ? Jul 26, 2018 21:22 |
|
the best is probably opening 2 input filestreams, 1 output filestream, and then doing copyto with an appropriate buffersize
|
# ? Jul 26, 2018 21:24 |
|
TheCog posted:At the risk of sounding ignorant, what is a p-lang? also you’re not ignorant it’s yospos slang
|
# ? Jul 26, 2018 21:24 |
|
Bloody posted:yeah for sure. the problem space is limited to four text files each a hundred lines long that I wanted to gently caress around with earlier today so I feel good are you sure the lines you're matching will be exactly identical? better spend 6 months adding a machine learning solution imo
|
# ? Jul 26, 2018 21:28 |
|
MALE SHOEGAZE posted:also you’re not ignorant it’s yospos slang It is? I thought it was like a mildly well-known industry term. That's how I use it at work anyway.
|
# ? Jul 26, 2018 22:18 |
|
Doom Mathematic posted:It is? I thought it was like a mildly well-known industry term. That's how I use it at work anyway.
|
# ? Jul 26, 2018 22:21 |
|
gonadic io posted:are you sure the lines you're matching will be exactly identical? better spend 6 months adding a machine learning solution imo it doesnt take nearly 6 months to include a levenshtein library and pick an arbitrary threshold
|
# ? Jul 26, 2018 22:23 |
|
Doom Mathematic posted:It is? I thought it was like a mildly well-known industry term. That's how I use it at work anyway. I think people instinctively know what you mean from context.
|
# ? Jul 26, 2018 22:25 |
|
"we need to teach the interns how to code because they only know p-langs" "the last idiot who worked here wrote it in some p-lang so we rewrote it in c#"
|
# ? Jul 26, 2018 22:26 |
|
Anyway it should be real term. I'll go make the "The pee lang is real!" hats.
|
# ? Jul 26, 2018 22:47 |
Corla Plankun posted:can you change the doc to match the svg instead? Nah, it's gotta match the journal template. Honestly, remaking the flowchart in a separate doc in latex is not such a hassle, and it'll come in handy anyways as I work this into my thesis (which I am writing concurrently). I just wanted to vent a little bit because, as previously stated, "latex makes me so goddamn unreasonably mad" with how brittle it is. Thanks everyone for listening to my venting and for the suggestions.
|
|
# ? Jul 27, 2018 00:04 |
|
rats (get it, cats in rust) update: we got kleislicode:
this was tricky to implement. (sorry, i know this is useless without explanation, i'm working on it). code:
side note, I wish rust would let me do this: code:
also: i still really don't get lifetimes, and this is tied up in my complete lack of understanding around how memory works. really looking forward to digging into c/c++ because rust isn't really helping with my intuition here. also also: translating a well-documented library from one language to another is a really useful exercise for learning. DONT THREAD ON ME fucked around with this message at 00:23 on Jul 27, 2018 |
# ? Jul 27, 2018 00:14 |
|
uh, this is the terrible programmers thread. i think you're looking for the good programmers thread. easy mistake to make
|
# ? Jul 27, 2018 02:01 |
|
there's nothing good about it. it's a monstrosity. i feel nothing but shame.
|
# ? Jul 27, 2018 02:02 |
|
for real though, i'm just reading the cats source code and re-implementing it as well as i can in rust. i love it but it's definitely not good. thanks though
|
# ? Jul 27, 2018 02:27 |
|
MALE SHOEGAZE posted:rats (get it, cats in rust)
|
# ? Jul 27, 2018 03:35 |
|
i just happen to like rats a lot. also i had a sweet tooth tonight, so check out this sweet sweet syntactic sugar: code:
|
# ? Jul 27, 2018 03:50 |
|
MFC is real bad lmao I will stick with C calls
|
# ? Jul 27, 2018 05:25 |
|
MALE SHOEGAZE posted:side note, I wish rust would let me do this: male shoegaze i think the inferred outlives rfc and the implied bounds rfc would help you out here and cover most of what you want. (it won't hurt to submit your rfc though, it doesn't seem like that large of an addition). there's also an ancient rfc about lifetime elision in impl headers that was accepted pre 1.0 and only now getting around to being implemented. once these are implemented you wouldn't need to copy your lifetime requirements on every function and impl block that acts on the same types and it would reduce a lot of noise. tinaun fucked around with this message at 06:12 on Jul 27, 2018 |
# ? Jul 27, 2018 06:08 |
|
mystes posted:I don't know, there's got to be a dumber rust/cats pun out there somewhere. Feral? Rascall
|
# ? Jul 27, 2018 07:46 |
|
TheCog posted:At the risk of sounding ignorant, what is a p-lang? I don’t know, what’s a p-lang with you?
|
# ? Jul 27, 2018 08:26 |
|
eschaton posted:I don’t know, what’s a p-lang with you? pos-lang
|
# ? Jul 27, 2018 08:33 |
|
eschaton posted:I don’t know, what’s a p-lang with you?
|
# ? Jul 27, 2018 08:53 |
|
Luigi Thirty posted:MFC is real bad lmao
|
# ? Jul 27, 2018 10:06 |
|
TheCog posted:At the risk of sounding ignorant, what is a p-lang? p-lang is stored in the balls
|
# ? Jul 27, 2018 10:18 |
|
MALE SHOEGAZE posted:i just happen to like rats a lot. what the gently caress sort of moon language is this
|
# ? Jul 27, 2018 10:20 |
cjs: if only our programmers had some means to work around the problem of excel’s xirr formula not being included in php standard library
|
|
# ? Jul 27, 2018 10:23 |
|
Powerful Two-Hander posted:what the gently caress sort of moon language is this It started as rust, which has syntax not dissimilar from c++. It is now something very different however
|
# ? Jul 27, 2018 10:31 |
|
Powerful Two-Hander posted:what the gently caress sort of moon language is this
|
# ? Jul 27, 2018 10:35 |
|
does rust let you declare your own operators, using Unicode too? because if not, there’s a project for shoegaze get all APL up in here
|
# ? Jul 27, 2018 10:37 |
|
the FP people need more APL in their lives
|
# ? Jul 27, 2018 10:37 |
|
eschaton posted:does rust let you declare your own operators, using Unicode too? https://github.com/rust-lang/rfcs/issues/818 quote:I'm closing this RFC as most people seem to be aganist this idea. I admit that in general the usefulness of this feature is limited. I was writing parser combinators which is one of the few times custom operators could be useful.
|
# ? Jul 27, 2018 10:52 |
|
eschaton posted:the FP people need more APL in their lives as do we all.
|
# ? Jul 27, 2018 11:06 |
|
Peeny Cheez posted:Have you tried Cw MC Calls? booooooo
|
# ? Jul 27, 2018 12:24 |
|
|
# ? Oct 13, 2024 15:23 |
|
tinaun posted:male shoegaze i think the inferred outlives rfc and the implied bounds rfc would help you out here and cover most of what you want. (it won't hurt to submit your rfc though, it doesn't seem like that large of an addition). there's also an ancient rfc about lifetime elision in impl headers that was accepted pre 1.0 and only now getting around to being implemented. oooh yeah these would help a lot. as you said though, my suggestion seems harmless so i might give it a shot just for fun. eschaton posted:does rust let you declare your own operators, using Unicode too? otoh, adding custom operators would be in keeping with my previous terrible programming language contribution: adding nested ternary expressions to Crystal. Peeny Cheez posted:Male Shoegaze has drunk deeply of the FP Kool-Aide i know you're just poking fun but let me just state that I am not an FP zealot. It's really fun and it's making my brain grow and I'll definitely continue to apply a lot of these concepts to other things, but I don't think it's the best/only way to program. I just came off a year at a scala shop and I didn't get to explore these concepts as much as I wanted so here I am. Powerful Two-Hander posted:what the gently caress sort of moon language is this it's good
|
# ? Jul 27, 2018 12:46 |