|
Soricidus posted:runtime is now down to about 15% of what it was before I started fixing performance. possibly I should stop profiling now? but yesterday I thought 200ms was as fast as I could get and now its around 140ms and I cant stop wondering whether 100ms is achievable, help I look forward to your weekly Twitch stream where you try to beat your personal best.
|
# ? Mar 29, 2019 21:53 |
|
|
# ? Dec 12, 2024 20:26 |
|
code:
|
# ? Mar 30, 2019 18:48 |
|
Soricidus posted:
im sorry what the gently caress
|
# ? Mar 30, 2019 19:40 |
|
turns out caches don't work if you use different keys for reads and stores, which we managed to do without noticing because the read and store use the same variable ... except it's a mutable variable that gets mutated in between
|
# ? Mar 30, 2019 19:55 |
|
Soricidus posted:
ah looking at my code again
|
# ? Mar 30, 2019 20:05 |
|
mutation was a mistake
|
# ? Mar 30, 2019 21:00 |
|
mutatis mutandis
|
# ? Mar 30, 2019 22:00 |
|
|
# ? Mar 31, 2019 19:44 |
|
blast from the past
|
# ? Mar 31, 2019 19:47 |
|
which IDE has a configurable enough auto-formatter to enforce this style? other than emacs
|
# ? Mar 31, 2019 20:17 |
|
i think you are failing to understand the level of dedication to the aesthetics of your craft that this style requires. each brace and semicolon must be carefully hand-placed by a code artisan. you cannot simply use a soulless auto-formatter; the results might look the same, but the spirit of the code would be missing, and the whole experience would be cheapened
|
# ? Mar 31, 2019 20:25 |
|
No use of xor swap, 2/10
|
# ? Mar 31, 2019 20:25 |
|
Soricidus posted:turns out caches don't work if you use different keys for reads and stores, which we managed to do without noticing because the read and store use the same variable ... except it's a mutable variable that gets mutated in between this is
|
# ? Mar 31, 2019 21:49 |
|
intellij 2019 status: now it's refusing to compile because it claims a variable called "s" might not have been initialized the reason the variable is not being initialized is that it doesn't loving exist my code is lovely enough without the ide literally inventing non-existent things to complain about
|
# ? Apr 1, 2019 22:46 |
|
Soricidus posted:intellij 2019 status: now it's refusing to compile because it claims a variable called "s" might not have been initialized invalid lambda expression maybe? like (rear end => s.lol)
|
# ? Apr 1, 2019 23:11 |
|
i figured it out. or at least i figured out where the variable name was coming from. i had a lambda in a static member assignment, like code:
the "fix" for now seems to be to rewrite it as code:
lol java just mash poo poo till it compiles what could possibly go wrong
|
# ? Apr 1, 2019 23:25 |
|
Soricidus posted:i figured it out. or at least i figured out where the variable name was coming from.
|
# ? Apr 1, 2019 23:30 |
|
Soricidus posted:i figured it out. or at least i figured out where the variable name was coming from. this is my experience with Java lambdas as well
|
# ? Apr 1, 2019 23:42 |
|
What about using Butt::poop?
|
# ? Apr 2, 2019 00:03 |
|
CPColin posted:What about using Butt::poop? gently caress you too
|
# ? Apr 2, 2019 00:29 |
|
Soricidus posted:i figured it out. or at least i figured out where the variable name was coming from. i know in c#, static initializers (the equivalent of the first thing) are subtly different from static constructors (the equivalent of the second thing) and i could see a theoretical low-effort lambda capture analysis caring about the distinction
|
# ? Apr 2, 2019 02:01 |
|
Wheany posted:runtime went from 1 hour 40 minutes to 20 seconds. this is the best feeling. i converted a polygon intersection algorithm (it needed to detect no intersection, intersection, or surrounding) from an algorithm that checked every point against every point (O^n) to a polygonal map quadtree based one that cut runtime of a program on a particularly detailed dataset that cut runtime down from 20 days to like 8 hours. i was treated like a goddamn hero and was given so much slack for the next 2 months i didn't do anything but play browser games.
|
# ? Apr 2, 2019 02:38 |
|
I'm just over here staring at all our gradle build files
|
# ? Apr 2, 2019 02:42 |
|
say hi to gradlew for me
|
# ? Apr 2, 2019 03:21 |
|
technically an "april fools" but pretty good satirequote:When AWS launches a service based on an open source project, we are making a long-term commitment to support our customers. We contribute bug fixes, security, scalability, performance, and feature enhancements back to the community. quote:Protecting Investment in Software Source (PISS) is a new initiative aimed at reducing the complexity and risk of licensing changes. Once we identify a successful open source project, we will produce a commercial version that our customers can consume as a managed service without worrying about new and arbitrary licensing. If the OSS vendor changes the license terms to prevent us from offering commercial offering, we will create a different copy of the software and offer it to our customers as a managed service. We will never fork an OSS project, because fork is a four letter word that evokes strong emotions from some of the open source warriors out there. Instead we will just create a different version of the software. Instead of a Fork, we will PISS the OSS project, so a commercial version can be created and offered to our customers. quote:How do we submit new open source projects for this initiative? quote:Where can I buy PISS t-shirts and hats?
|
# ? Apr 2, 2019 04:48 |
|
terrible programming: “Alexa, PISS on Tensorflow”
|
# ? Apr 2, 2019 04:48 |
|
Arcsech posted:terrible programming: “Alexa, PISS on Tensorflow”
|
# ? Apr 2, 2019 04:51 |
|
besides not being a relational database, is there anything especially bad about mongodb in particular?
|
# ? Apr 2, 2019 04:57 |
|
HoboMan posted:besides not being a relational database, is there anything especially bad about mongodb in particular? it used to lose data at the drop of a hat. they have since bought another startup for their storage engine and entirely replaced the original one with the one from the startup they acquired. i am told that it is better since they did this it also used to have really serious problems with its distributed consensus junk, but they have mostly resolved that, although there are still a few issues here and there: http://jepsen.io/analyses/mongodb-3-6-4 the new license is (last i heard) rather vague and a bit questionable although it's probably not an issue if you're not trying to run a mongo-as-a-service cloud thing it technically supports schemas now, although it does so in a wildly lovely way (it uses json schema, a standard that's overly verbose and awful, and if a document doesn't match the schema, it gives zero feedback on why, just that it doesn't match) so basically: it's not catastrophically bad, anymore, as long as you can use a recent version. but why would you in a world where postgres exists
|
# ? Apr 2, 2019 05:08 |
|
Arcsech posted:but why would you in a world where postgres exists
|
# ? Apr 2, 2019 05:20 |
|
brand engager posted:I'm just over here staring at all our gradle build files take a few seconds to switch it over to maven so you don't have to do that anymore
|
# ? Apr 2, 2019 13:52 |
|
Shaggar posted:take a few seconds to switch it over to maven so you don't have to do that anymore
|
# ? Apr 2, 2019 14:21 |
|
Shaggar posted:take a few seconds to switch it over to maven so you don't have to do that anymore I want to switch our ant builds over to maven, unfortunately there are dozens of ant files in a fairly complex build structure so it's going to take ages. Even just working out the libs is going to take ages.
|
# ? Apr 2, 2019 14:56 |
|
Arcsech posted:so basically: it's not catastrophically bad, anymore, as long as you can use a recent version. but why would you in a world where postgres exists if you are database is append only then postgres is suitable - if you are modifying records in place you risk entering the realm of disk fragmentation fo-eva. very recent versions of mongo are ok if you need a document db that stores actual documents that you need to update. if you need a place to dump json you never update again, mysql/pgsql are prolly a better choice.
|
# ? Apr 2, 2019 15:02 |
|
json belongs in a dumpster and never in a database
|
# ? Apr 2, 2019 15:03 |
|
brand engager posted:I'm just over here staring at all our gradle build files More like grundle am I right?
|
# ? Apr 2, 2019 15:06 |
|
if you just want a place to store documents have you considered a file system?
|
# ? Apr 2, 2019 15:22 |
|
Aramoro posted:I want to switch our ant builds over to maven, unfortunately there are dozens of ant files in a fairly complex build structure so it's going to take ages. Even just working out the libs is going to take ages. switching to maven to pwn the libs
|
# ? Apr 2, 2019 15:34 |
|
Feisty-Cadaver posted:if you are database is append only then postgres is suitable - if you are modifying records in place you risk entering the realm of disk fragmentation fo-eva. disk fragmentation? what year is it, again?
|
# ? Apr 2, 2019 16:40 |
|
|
# ? Dec 12, 2024 20:26 |
|
TheFluff posted:disk fragmentation? what year is it, again? what's a disk?
|
# ? Apr 2, 2019 16:47 |