|
gonadic io posted:assuming you mean proc macros, once you have those 4 libraries set up (syn, quote, proc-macro2, ??? proc-macro-hack?) i haven't found it too bad. synstructure, syn, quote, and proc_macro i have these structs, and for all of them i keep writing this long mess of extremely boilerplate code, and i want to not do that, but i don't know what i'm doing, so it's going very poorly
|
# ? Apr 17, 2019 22:03 |
|
|
# ? May 15, 2024 08:27 |
|
Bloody posted:synstructure, syn, quote, and proc_macro this is the boilerplate pattern i see everywhere (taken from my named_arg macro): code:
|
# ? Apr 17, 2019 22:06 |
|
fritz posted:the z-machine has been reverse-engineered for years and there's tools like http://inform7.com to build things for it, but then again there's : http://cowlark.com/vbcc-z-compiler/index.html I meant just writing an interpreter that compiles to version 3 Z-code based on the specs that exist I know that Z-machine’s been reversed for years, ZIL hasn’t (there’s an OSS compiler)
|
# ? Apr 17, 2019 22:07 |
|
Powerful Two-Hander posted:i just got asked why nothing was updating following an ajax call, they had not even thought to check whether the call succeeded or what the expected result was (nothing) or if it was returning an error. trip report: ~2 hours later they realised that this was the problem. not sure if it was by random "comment and uncomment code until it works" or by following my hints to check the logs and look for any exceptions if they'd just looked at the globals file they'd see that all Http exceptions are automatically logged before being rethrown to catch this exact sort of "I'm getting a failure before I hit my controller" problem. who knows, maybe they've learned something...
|
# ? Apr 17, 2019 22:11 |
|
https://twitter.com/OpenBSD_ports/status/1118603848593993729
|
# ? Apr 17, 2019 22:22 |
|
webass
|
# ? Apr 17, 2019 23:22 |
|
code:
code:
|
# ? Apr 17, 2019 23:30 |
|
Luigi Thirty posted:I meant just writing an interpreter that compiles to version 3 Z-code based on the specs that exist doesn't inform 6 compile zil code? i was under the impression that it worked with the original source for zork
|
# ? Apr 17, 2019 23:44 |
|
the Infocom source dump claims that the compiler for that source no longer exists
|
# ? Apr 18, 2019 00:32 |
|
pseudorandom name posted:the Infocom source dump claims that the compiler for that source no longer exists not the original compiler, but i thought inform was (mostly) compatible
|
# ? Apr 18, 2019 00:44 |
|
necrotic posted:I am a 10xer and therefore right 10x fewer bugs how unambitious. I’m a 10000x programmer x = 0
|
# ? Apr 18, 2019 03:33 |
|
gonadic io posted:the junior we hired today astounded me. i left him with: the structures seem sound - get it compiling and then we can start to test it plz stop insulting the very good and enlightened way that lua works by default. lol if you're shameful languages doesn't automatically yield null when accessing an undefined variable
|
# ? Apr 18, 2019 05:27 |
|
I'm a log10(x) programmer
|
# ? Apr 18, 2019 06:04 |
|
Bloody posted:I'm a log10(x) programmer where effort ∝ log10(figgies)
|
# ? Apr 18, 2019 06:25 |
|
It's a mystery, maybe the sqlite developers have no idea what they are doing, because Rust is the successor to these defunct C/C++ languages in every regard. Rust compiler has much better and forced auto-update-enhancement with a 6-8 month dev cycle that breaks all code from previous versions when new ideologies roll around in the years to come: like Lambda calculus multi threading, goto-closure forloops, and Impotence mismatch disabling defunct structures like if and for, also Rust is plug and play with nosql ideologies such as MongoDB, which everyone agrees is much faster than traditional databases because of webscale enhancement libraries. Keep fighting the good fight and asking the real questions. You're a gentleman and a scholar.
|
# ? Apr 18, 2019 15:04 |
|
redleader posted:where effort ∝ log10(figgies) Wait, log figgies is log log of the actual money
|
# ? Apr 18, 2019 15:11 |
|
CRIP EATIN BREAD posted:It's a mystery, maybe the sqlite developers have no idea what they are doing, because Rust is the successor to these defunct C/C++ languages in every regard. Rust compiler has much better and forced auto-update-enhancement with a 6-8 month dev cycle that breaks all code from previous versions when new ideologies roll around in the years to come: like Lambda calculus multi threading, goto-closure forloops, and Impotence mismatch disabling defunct structures like if and for, also Rust is plug and play with nosql ideologies such as MongoDB, which everyone agrees is much faster than traditional databases because of webscale enhancement libraries. Keep fighting the good fight and asking the real questions. You're a gentleman and a scholar. lol somebody is sick of seeing this question E: God told them not to gonadic io fucked around with this message at 15:57 on Apr 18, 2019 |
# ? Apr 18, 2019 15:47 |
|
bob dobbs is dead posted:Wait, log figgies is log log of the actual money effort hardly ever changes. this checks out
|
# ? Apr 18, 2019 15:57 |
|
someone give me more figgies
|
# ? Apr 18, 2019 16:00 |
|
pretty sure effort actually goes down as figgies go up
|
# ? Apr 18, 2019 16:03 |
|
Jabor posted:pretty sure effort actually goes down as figgies go up exponentially
|
# ? Apr 18, 2019 16:05 |
|
Captain Foo posted:someone give me more figgies Invest in Pinterest IPO (PINS) today on NYSE, 500MM shares outstanding. Pricing currently $23.75, open around 11:30. Been following all morning, the symbol still showing as *Paramount Life Ins Co Ark* for various terrible programmer reasons.
|
# ? Apr 18, 2019 16:07 |
|
MrMoo posted:Invest in Pinterest IPO (PINS) today on NYSE, 500MM shares outstanding. Pricing currently $23.75, open around 11:30.
|
# ? Apr 18, 2019 17:46 |
|
mystes posted:My impression of pinterest years ago it was just companies trying to get free advertising through social media and there were no actual users, and it seemed like it only got less popular from that point. They're seriously having an IPO? in my anecdotal / second hand experience pinterest is really big with women; my wife used it to plan our wedding and she told me tons of people use for that and more generally to create visual inspiration boards for stuff like fashion or events or whatever. as a bonus, people who make boards like that tend to be pretty interested in advertising about the topic of the board or the items that are featured.
|
# ? Apr 18, 2019 17:50 |
|
Slack Motherfucker posted:in my anecdotal / second hand experience pinterest is really big with women; my wife used it to plan our wedding and she told me tons of people use for that and more generally to create visual inspiration boards for stuff like fashion or events or whatever. as a bonus, people who make boards like that tend to be pretty interested in advertising about the topic of the board or the items that are featured. my anecdotal experience mirrors yours Now we have two data points!
|
# ? Apr 18, 2019 17:54 |
|
(painting of a laptop) cest n'est pas une turing machine
|
# ? Apr 18, 2019 19:14 |
|
MrMoo posted:Invest in Pinterest IPO (PINS) today on NYSE, 500MM shares outstanding. Pricing currently $23.75, open around 11:30. Haven't all the tech IPOs been universally garbage though?
|
# ? Apr 18, 2019 19:29 |
|
CPColin posted:That's certainly an interesting way to sort by access time descending, then name ascending. But wait, why isn't the page showing results in that order? Bonus: Just got the classic "Comparison method violates its general contract!" error because the comparison repeatedly invokes System.currentTimeMillis() instead of just calling it once and reusing the value.
|
# ? Apr 18, 2019 21:35 |
|
The Fool posted:my anecdotal experience mirrors yours three! my sister uses it for her arts/crafts stuff
|
# ? Apr 18, 2019 23:26 |
|
Krankenstyle posted:three! my sister uses it for her arts/crafts stuff four! one of my ex-gfs uses it to keep track of beauty products she likes
|
# ? Apr 18, 2019 23:52 |
|
I've been reading the terrible students thread and found this gem I'd like to share...Solus M.D. posted:Super long time no post! A couple of complaints/pieces of humor, one specific, one general. For background, I TA for a computer science course that's basically Software Engineering 101. Pretty much the entire class is teaching students about object oriented design principles and applications, using an object oriented language. We recently had a quiz about design and refactoring. one of us poor fuckers is going to have to deal with that poo poo irl! I already did when someone put an entire active directory search into the raw controller instead of a static function! It sucks!
|
# ? Apr 19, 2019 00:45 |
|
aaaaaaand im fired
|
# ? Apr 19, 2019 01:09 |
|
HoboMan posted:aaaaaaand im fired 😔
|
# ? Apr 19, 2019 01:20 |
|
HoboMan posted:aaaaaaand im fired Don’t let a lovely company that doesn’t give you enough time to learn their architecture and processes bring you down. gently caress them and collect unemployment for a bit.
|
# ? Apr 19, 2019 01:31 |
|
HoboMan posted:aaaaaaand im fired that sucks appropriate avatar though so that's a...plus? edit: also it's basically the weekend so you can super drunk with no fear
|
# ? Apr 19, 2019 01:59 |
|
So I'm facing a particular sort of horror right now, to the point that I must share it. But first, I will share some context. Due to really loving hating contracting in all forms and wanting to learn first hand - also gaining valuable experience - I didn't leave job with deadboss and lots of bullshit. The usual "one guy had it all in his head at a startup and he's gone for reasons" (☠) poo poo happened, but it wasn't just tech debt. Our deployments are a mess of half finished this and that with a tangle of dependencies that, if mapped, would look like a dream catcher or something. Basically, we were dead but didn't know it yet. So, now we have a huge moonshot of a deployment we're trying to do with some 18 interconnected (and BADLY architected - if it could be said to be at all) services with difference versions of what they in turn depend on including dlls that do calculations for "airplane poo poo" and it's stressing everyone out. On top of it, it was basically a man year of work done by, you guessed it, one guy who is so burned out he's starting to snap at people. We have a new manager who is trying to get a handle on it all but he's having to wrangle old attitudes in a way that respects why people are so defensive while also making a point of things like "We should know what depends on what and what goes where, and it should be written down." So now, the coding horror: We have a service that is given batches of calculations to do. It's a web service ran in IIS (.NET shop) that, I poo poo you not, spawns a thread for every request, and doesn't actually keep track of what it does with the thread. Also, for some things, like where we'd have to iterate over a family of things like settings or temperatures or whatever, more threads. Naturally, if we use small batches, poo poo's fine, if we send a big batch to it, it takes 90 minutes to complete it. This is the "job runner" THEN IT GETS BETTER Sometimes you go through a "service" that calls the job runner, and that service itself just spawns threads. So you have something spewing threads like a golf ball cut open making something else spew threads like a fake can of peanut brittle spewing spring snakes or whatever and it goes down periodically since it's just poo poo. After I get buttmad over this I just go through both codebases and rip out the thread bullshit, check it in to a separate branch, and ask if we can just test this as part of our stupid rear end release, since this is a fundamental flaw I'm trying to fix. "Only if we have to, let's try to just change timeouts in config files!" THEN IT GETS BETTER!!! The "service" has code that checks if the job runner is 500-ing or out of memory or in some way choking due to the thread spew. If it detects this is the case, it just waits, then tries again. But how does it check? It "loops" over a try catch with a goto in the body of the catch. I repeat, it "loops" over a try catch with a goto in the body of the catch. It also uses the weirdest caching I've ever seen. I included it so y'all can see this poo poo. code:
How does IIS "Scale" for you if you're on a multicore server and you get a lot of requests at the same time to a service. Does there exist multiple instances (as processes or whatever, please clarify my terminology here if I'm misusing it) of each controller that took the request in the service (or, well, whatever, what if it's asmx?) or is it queued up and one at a time is done? How WOULD you code things to take advantage of multiple cores?
|
# ? Apr 19, 2019 02:03 |
|
as a person who knows nothing about c# but I have to use it for my job all the time, i make my webapi controller actions into async methods that return tasks and call await butt.peepeeAsync() in them. I don't do airplane related calculations in these async method though. I hope this is helpful and this response finds you well
|
# ? Apr 19, 2019 02:19 |
|
i have always assumed that whichever microsoft framework im using just magically handles it all for me
|
# ? Apr 19, 2019 02:25 |
|
Bloody posted:i have always assumed that whichever microsoft framework im using just magically handles it all for me Basically it does from my reading but I'd rather talk to someone who knows and get a conversation started. Flat Daddy posted:as a person who knows nothing about c# but I have to use it for my job all the time, i make my webapi controller actions into async methods that return tasks and call await butt.peepeeAsync() in them. I don't do airplane related calculations in these async method though. I hope this is helpful and this response finds you well We're flight planning poo poo, not in-flight. I'm still kinda mad at Boeing being ran by loving morons but that's another topic and not one I can speak to except through friends at Boeing. I'm also still just in awe that we have, in production, try/catch/gotos.
|
# ? Apr 19, 2019 02:36 |
|
|
# ? May 15, 2024 08:27 |
|
Space Whale posted:
Great googly moogly
|
# ? Apr 19, 2019 02:43 |