|
tef posted:threads are nice if you only share atomic or concurrent data structures between them, or better, transactions Software transactional memory superiority.
|
# ? Jun 28, 2017 22:20 |
|
|
# ? May 25, 2024 09:01 |
some peak commits from me today "Replaces functionA with functionB, that is slower but works."
|
|
# ? Jun 28, 2017 22:26 |
|
i love those, i have probably a dozen commits now along the lines of: "fixed function ButtToucher so that it actually touches butts now"
|
# ? Jun 28, 2017 22:50 |
in other news, i should probably do something so that my python project sometimes stops and thinks. spent 30 minutes "debugging" the fact that program trucked on despite getting a float instead of an array
|
|
# ? Jun 28, 2017 23:03 |
|
Sapozhnik posted:pro read, ty for this a service registry in zookeepr with ephemeral nodes works ok, but do you really need linearisability for your lookup based on a seconds long heartbeat that could be out of date by the time you make the request anyway? and you're paying for that in scalability + probably doing something custom instead of a ready-made solution that works with basically any service
|
# ? Jun 28, 2017 23:32 |
|
MononcQc posted:I made my own set of pipes macros for Erlang (see library) but frankly I'm not finding myself using it very much. well yeah, if the functions aren't written in a way that plays nice with pipes it's not so useful, but I would argue it's a great way to handle chains of changes on a single common object, which is typically how it gets used, beats: code:
Sure, I can read the former, but arguments are separated from calls to a degree that it's very easy to miss a mistake when reading or editing. I don't even think it's a question of familiarity with imperative or functional, piping organised the calls in the order of evaluation so while inside out can be read, piping accurately represents how the final value is reached.
|
# ? Jun 29, 2017 00:02 |
|
Zemyla posted:Software transactional memory superiority. this but hardware transactional memory
|
# ? Jun 29, 2017 02:59 |
|
Luigi Thirty posted:okay there we go. centering a string: game calls the OS PutStringCentered function. PutStringCentered does its magic and calls the OS PutString function with an adjusted screen RAM destination address. PutString repeatedly calls PutChar until it hits a NUL. the OS can call itself without blowing up thanks for the props and this is awesome! soon you will start to imbue your A-traps with meaning, and add a patchable in-RAM trap table via traps like like GetTrapAddress and SetTrapAddress, and you'll bring over your other OS features too, and your graphics API, and you'll wind up with a complete miniature graphical OS! muahahahaha
|
# ? Jun 29, 2017 03:15 |
|
Maluco Marinero posted:well yeah, if the functions aren't written in a way that plays nice with pipes it's not so useful, but I would argue it's a great way to handle chains of changes on a single common object, which is typically how it gets used, beats: I'd argue in favor of a more data-centric approach since all the data has to be around anyway: code:
Now if not all the data is around at the same time, then pipes are less useful, unless you also use them to weave in control flow, but you quickly need to handle errors; fancier pipes than just compositional ones are required then, such as either/maybe switching on success or errors. There's no arguing that piping is overall nicer when writing imperative-looking code, but I try (when possible) to figure out how to fall back to a more declarative mode of operations. MononcQc fucked around with this message at 03:19 on Jun 29, 2017 |
# ? Jun 29, 2017 03:17 |
|
elite_garbage_man posted:Look, I'm luigi
|
# ? Jun 29, 2017 03:25 |
|
eschaton posted:thanks for the props and this is awesome! sadly there's no pixel framebuffer because it's a dang arcade game i've got a scrollable playfield layer that's roughly 2 screens wide and 2 screens tall, a 42x30 text layer, and 8 selectable buffers of 64 sprites (which are 8px wide but can be up to 256px tall) each
|
# ? Jun 29, 2017 04:39 |
|
what is the best proportional font for coding use? preferably available on windows by default thx
|
# ? Jun 29, 2017 04:50 |
|
redleader posted:what is the best proportional font for coding use? preferably available on windows by default thx
|
# ? Jun 29, 2017 05:00 |
|
redleader posted:what is the best proportional font for coding use? preferably available on windows by default thx Verdana is fine, and available pretty much everywhere. I really like the Go font though. (Stay away from the monospace one imo, but the proportional one is good)
|
# ? Jun 29, 2017 05:09 |
|
redleader posted:what is the best proportional font for coding use? preferably available on windows by default thx consolas
|
# ? Jun 29, 2017 06:13 |
|
redleader posted:what is the best proportional font for coding use? preferably available on windows by default thx i think that's a matter of preference
|
# ? Jun 29, 2017 08:28 |
|
redleader posted:what is the best proportional font for coding use? preferably available on windows by default thx papyrus
|
# ? Jun 29, 2017 08:38 |
|
I've got a coworker who uses comic sans on a cream background. I still haven't yet figured out if this is a master troll or he genuinely likes it.
|
# ? Jun 29, 2017 08:52 |
|
just install ProFont and be happy it's basically bitmap Monaco 9 but with distinguished 1/l and 0/O characters, and heavier {} bonus: it's by Andrew Welch eschaton fucked around with this message at 09:27 on Jun 29, 2017 |
# ? Jun 29, 2017 09:25 |
gonadic io posted:I've got a coworker who uses comic sans on a cream background. I still haven't yet figured out if this is a master troll or he genuinely likes it. id love to pull that off but im not sure i can bear times new roman in my ide
|
|
# ? Jun 29, 2017 09:34 |
boolean logic status final update: my last night logic was probably fine. as i just realised, i had a typo so filter looked for but not butt
|
|
# ? Jun 29, 2017 12:23 |
|
redleader posted:what is the best proportional font for coding use? preferably available on windows by default thx Topaz 8
|
# ? Jun 29, 2017 13:05 |
|
Fira code with ligatures
|
# ? Jun 29, 2017 13:10 |
|
AWWNAW posted:Fira code with ligatures i use fira in my mumps ide
|
# ? Jun 29, 2017 14:17 |
|
this query plan is saying that 99% of query time is being spent on a distinct sort of 0 rows???
|
# ? Jun 29, 2017 15:33 |
HoboMan posted:this query plan is saying that 99% of query time is being spent on a distinct sort of 0 rows??? it basically says that na != na
|
|
# ? Jun 29, 2017 15:40 |
|
est rows: 126,608,000. actual rows: 0 hmmmm...
|
# ? Jun 29, 2017 15:47 |
|
Bloody posted:consolas
|
# ? Jun 29, 2017 16:18 |
|
gonadic io posted:I've got a coworker who uses comic sans on a cream background. I still haven't yet figured out if this is a master troll or he genuinely likes it. He could be dyslexic. Comic Sans is shown to be easier to read for dyslexic people.
|
# ? Jun 29, 2017 21:36 |
|
Zemyla posted:He could be dyslexic. Comic Sans is shown to be easier to read for dyslexic people. do you have a study which shows this? the only ones I can find don't include Comic Sans in their set.
|
# ? Jun 29, 2017 21:47 |
terrible programmer question of the evening: in python, i have for loops that do things, and for some of them i've set code:
|
|
# ? Jun 29, 2017 22:59 |
|
cinci zoo sniper posted:terrible programmer question of the evening: guessing you need to flush the print buffer https://stackoverflow.com/questions/230751/how-to-flush-output-of-python-print
|
# ? Jun 29, 2017 23:09 |
|
cinci zoo sniper posted:terrible programmer question of the evening:
|
# ? Jun 29, 2017 23:13 |
Rectus posted:guessing you need to flush the print buffer ratbert90 posted:flush stdout yo. thanks, will throw it into corresponding functions
|
|
# ? Jun 29, 2017 23:15 |
another question while i'm still at it. is there any special fp or something paradigm that i should know or consider if i basically have a class with a bunch of functions, and now im starting to see enough overlap between a part of them to warrant moving it out into a private class function of its own
|
|
# ? Jun 29, 2017 23:19 |
|
holy poo poo i actually found an open sores project that uses D it's a semi-functional linux client for onedrive
|
# ? Jun 30, 2017 01:05 |
|
cinci zoo sniper posted:another question while i'm still at it. is there any special fp or something paradigm that i should know or consider if i basically have a class with a bunch of functions, and now im starting to see enough overlap between a part of them to warrant moving it out into a private class function of its own if you think those functions can be usefully reused by some external consumer, sure, but otherwise you're just shuffling code around so organize it however you want.
|
# ? Jun 30, 2017 02:13 |
no longer enemies with matplotlib. now enemies with ggplot2
|
|
# ? Jun 30, 2017 10:44 |
MALE SHOEGAZE posted:if you think those functions can be usefully reused by some external consumer, sure, but otherwise you're just shuffling code around so organize it however you want. tradeoff there is that is definitely less readable to customer, but then i have to fix one place instead of copy/pasting in many
|
|
# ? Jun 30, 2017 11:00 |
|
|
# ? May 25, 2024 09:01 |
|
pointsofdata posted:if the producer needs completion confirmation then it's not really a good use case for persistent queues this is literally what i said
|
# ? Jun 30, 2017 13:50 |