|
ultravoices posted:okay you sort of can do that in python by with hasattr, it will retain state between function calls but the attribute will be accessible from outside the scope of the function. how would you use hasattr? the only ways i've seen in python is either code:
code:
|
# ? Sep 1, 2017 10:00 |
|
|
# ? May 22, 2024 12:29 |
|
so the madmen who work on webkit are thinking seriously about removing one of js's few good features i like how they're planning on introducing a bunch of really low-level threading primitives into js, rather than a set of less footgunny concurrency abstractions.
|
# ? Sep 1, 2017 12:12 |
|
redleader posted:so the madmen who work on webkit are thinking seriously about removing one of js's few good features Ahahaha I look forward to the combination of your average JavaScript programmer and what basically seems to be the barebones Posix threads model. Gonna be glorious.
|
# ? Sep 1, 2017 12:19 |
|
suffix posted:how would you use hasattr? code:
|
# ? Sep 1, 2017 12:57 |
|
redleader posted:so the madmen who work on webkit are thinking seriously about removing one of js's few good features javascript, much like go, seems determined to completely reinvent the history of programming languages from first principles
|
# ? Sep 1, 2017 17:26 |
|
first as tragedy, then as farce, then as farce again but ~in the browser~
|
# ? Sep 1, 2017 17:43 |
|
i dont think the webkit devs "get" concurrency https://twitter.com/filpizlo/status/903250367663693824
|
# ? Sep 1, 2017 17:53 |
|
my one core CPU (sometimes?? poo poo gets complicated) executes serially, can't do concurrency sorry thread havers, execute your programs somewhere else
|
# ? Sep 1, 2017 17:55 |
|
Sweeper posted:my one core CPU (sometimes?? poo poo gets complicated) executes serially, can't do concurrency sorry thread havers, execute your programs somewhere else there's a range of models for running more than one bit of code at a time with shared memory, from cooperative multitasking up to multi-cpu systems. it's debatable where you draw the line and say "this is concurrent, this is not", but i think it's reasonable to put that line at the point at which another bit of code can run at an unpredictable point in your code -- i.e. pre-emptive multitasking. and event loops are not on the concurrent side of that line.
|
# ? Sep 1, 2017 18:40 |
|
Soricidus posted:there's a range of models for running more than one bit of code at a time with shared memory, from cooperative multitasking up to multi-cpu systems. it's debatable where you draw the line and say "this is concurrent, this is not", but i think it's reasonable to put that line at the point at which another bit of code can run at an unpredictable point in your code -- i.e. pre-emptive multitasking. and event loops are not on the concurrent side of that line. I guess I consider the 'wait' time in tasks to be a part of the total task, so if you are waiting for I/O you can do something else "concurrently" when whatever you were doing is waiting for an interrupt or something
|
# ? Sep 1, 2017 18:54 |
|
Having done Go a bit my biggest complaint is over keeping track of what the heck ":=" is doing to my already-declared variables and their scope.
|
# ? Sep 1, 2017 19:18 |
|
Soricidus posted:there's a range of models for running more than one bit of code at a time with shared memory, from cooperative multitasking up to multi-cpu systems. it's debatable where you draw the line and say "this is concurrent, this is not", but i think it's reasonable to put that line at the point at which another bit of code can run at an unpredictable point in your code -- i.e. pre-emptive multitasking. and event loops are not on the concurrent side of that line.
|
# ? Sep 1, 2017 22:09 |
|
read lauer & needham y'all
|
# ? Sep 2, 2017 00:31 |
|
Gazpacho posted:read lauer & needham y'all / me: ehh
|
# ? Sep 2, 2017 00:41 |
|
btw the dual to timeslicing in event-driven systems would be an event handler that has to do something CPU-intensive so it slices that up by throwing subtask events into its own queue but then it doesn't filter to ensure that it's only processing the subtasks and accidentally takes an external request from the queue before it has taken the last subtask.
|
# ? Sep 2, 2017 00:56 |
|
why would you slice an event up if you were going to put the queue in a filtered mode that only took those slices
|
# ? Sep 2, 2017 17:09 |
|
so that the runtime can switch to other tasks waiting on other queues at each pop
|
# ? Sep 2, 2017 18:13 |
|
ah, sure, makes sense
|
# ? Sep 2, 2017 18:35 |
|
c is still awesome, hth and a bonus
|
# ? Sep 6, 2017 01:33 |
|
|
# ? Sep 6, 2017 01:56 |
|
yah camping is good too, i went up to mendocino to avoid the hell on earth of a 90+ sf
|
# ? Sep 6, 2017 02:07 |
|
thats the guy what wrote the article
|
# ? Sep 6, 2017 02:08 |
|
wow what a loving mutant he is
|
# ? Sep 6, 2017 02:31 |
|
JawnV6 posted:yah camping is good too, i went up to mendocino to avoid the hell on earth of a 90+ sf where did you go in mendocino where it wasnt even hotter
|
# ? Sep 6, 2017 02:39 |
|
didnt know c developers were normal
|
# ? Sep 6, 2017 03:41 |
|
my bitter bi rival posted:where did you go in mendocino where it wasnt even hotter state park right on the coast, hiked in to the primitive campsites ~2mi inland. was only like 80's?
|
# ? Sep 6, 2017 03:47 |
|
C is a good language for writing C programs in
|
# ? Sep 8, 2017 00:56 |
|
Gazpacho posted:C is a good language for writing C programs in a gun is a good tool for killing innocent children with just because the tool is good at doing the job doesn't mean the job should be done
|
# ? Sep 8, 2017 01:20 |
|
JewKiller 3000 posted:a gun is a good tool for killing innocent children with please try not to summon ESR
|
# ? Sep 8, 2017 01:21 |
|
Gazpacho posted:C is a good language for writing C programs in which c?
|
# ? Sep 8, 2017 01:24 |
|
that guy really needs to learn the difference between a research article and a blog post
|
# ? Sep 8, 2017 01:24 |
|
JewKiller 3000 posted:a gun is a good tool for killing innocent children with
|
# ? Sep 8, 2017 01:29 |
|
JewKiller 3000 posted:a gun is a good tool for killing innocent children with excellent username/post combo
|
# ? Sep 8, 2017 01:47 |
|
Gazpacho posted:that guy really needs to learn the difference between a research article and a blog post yeah what is this, this is way too coherent for a PL PDF I mean, including C code and not pseudo code, that's so.... explicit
|
# ? Sep 8, 2017 16:50 |
|
Gazpacho posted:that guy really needs to learn the difference between a research article and a blog post where, to be clear, the difference is that the people who produce the former have to pretend there is a deep difference to preserve: 1) an archaic system of academic publishers; and; 2) their own continued existence within a byzantine funding system which has an concept of "merit" derived mostly from the publishers of point 1
|
# ? Sep 8, 2017 17:05 |
|
(my funding is secure through 2018 so i am comfortable talking poo poo for a little while yet)
|
# ? Sep 8, 2017 17:09 |
|
why do academic journals insist on the bad two column layout, bad font, bad spacing, bad page size, and bad writing style?
|
# ? Sep 8, 2017 17:22 |
|
you need to name some names there, because for all the hate i already heaped on publishers above i must say i usually come away impressed with the quality of work they put into cleaning up manuscripts only a handful of people ever read
|
# ? Sep 8, 2017 17:37 |
|
i dunno man. all of them? everytime i open a paper its always the same lovely 2 col layout. i just love it when a sentence runs six lines and have 3 words hyphenated to the next line. oh and you almost never get a glossary for any terms introduced in the paper. nor will you get an index or a table of content for long papers. in conclusion, academic paper layout blows goats QED
|
# ? Sep 8, 2017 18:06 |
|
|
# ? May 22, 2024 12:29 |
|
Shinku ABOOKEN posted:in conclusion, academic paper layout blows goats ∎
|
# ? Sep 8, 2017 18:09 |