Show newer

@iankenway

Why do guys always name their companies after their penises?

@Pat What I found more interesting about this study is how it was partly debunked by showing that children were not choosing the immediate reward of a single marshmallow over the later reward of several due to an inability to delay gratification. Later studies showed the choice was made because some children lacked trust in adults and simply did not believe and chose the immediate (and certain) reward over a delayed reward they never thought they would get since they were so used to being lied to.

I would say that in any attempt to relate this study to COVID you will find the same sort of thought process holds true. That is, many have lost trust in the government and institutions. They feel if they delay getting their rights back they may not get them back at all.

@niconiconi meanwhile im rewriting my blog generations tatic files... i could never use a prebuilt system, not enough features

Relevant news for people who build decentralized software 

The W3C Decentralized Identifiers standard is now a 1.0 draft.

w3.org/TR/did-core/

(I only just heard of it today, I have no opinions on it right now.)

Randomly came across @stevenroose commenting on a totally random github ticket. Instantly remembered him because he uses the same avatar apparently... what a small world :)

@Acer Sure, though youll still need to implement the bulk of it yourself that way.

@Acer You could do something that is extremely ineffcieint using LinkedList.. but no, I cant think of any way to do an efficient version with built-in linked list implementation.

You might be able to hack something together, however, using the AbstractSequentialList

@Acer Thus why I said: "The wrapper you put around classes before inserting it".. the wrapper is effectively the pointer and the thing it wraps is the "value".. the wrapper would contain three properties "next, prev, value".. next points to the next wrapper, prev points to the previous wrapper, value points to the value.

You will effectively be implementing your own linked list but using the built in hash-type list. and of course using builtin interfaces.

Do you need me to write out a full solution for you to make it clearer?

@Acer Thats valid, even if you synchronize it wont allow you to modify while using the iterator unless you modify it **through** the iterator (which only allows you to remove IIRC)... So you are required to avoid that.

Everything in java (except primitives) are a pointer by default. The wrapper you put around classes before inserting it into your hashmap would be the pointer basically.

@Acer yes that is correct, though not limited to LL... all collections forbid you to modify them while iterating over them.

In short, collection classes are **not** thread safe.

You can either synchronize yourself to insure you do not modify the list as your using the iterator or you can use the builtin utils that wrap a collection and allow it to be synchronized:

docs.oracle.com/javase/7/docs/

Though again, the approach your using is fundamentally flawed and wont work even once you fix the synchronization problem. Looking up elements in a linked list is expensive and thus if there is no way to directly access its point in memory from the hashmap you have defeated the whole purpose of a linked hashmap.

@Acer No, not efficiently.

But prev and next should work for writable linked lists.. what sort of error you get?

@Acer That should be simple. Just internally use a hashmap and wrap the elements you add to it with a link to next and prev elements and store the first and last elements explicitly. Then use whichever collection's method is fastest when accessing it.

Hello I'm Sparkins and this is my / to the fediverse!

I'm currently learning to program, just working through HTDP and then SICP











@mcduquesne

No one said you had to predict the climate millenia out.

We are evaluating if your expert on the topic of climate change. So what advances have you contributed to the field that demonstrates your expertise?

Even if its not an advance, have you shown any detailed analysis you posted somewhere on models, theories, or data that shows you have an intimiate knowledge of the current science of climate change?

I am asking you, why would you think your an expert enough to be able to form opinions in the first place?

The people you think are clearly corrupt to agree with the consensus are largely deep-experts on the topic, most have demonstrated their expertise by the quality of their past work... So again what do you have to show that would suggest you have enough expertise to even know how to critique the current science? What are your accomplishments that demonstrate your expertise? Are there any?

@icedquinn @realcaseyrollins @crunklord420 @commandlinekid

@mcduquesne

Years of study doesnt make you an expert, demonstrating understanding does... What have you published that has provided new or predictive insight to climate change that has been shown to be true?

Usually when people say "years of study" they mean "I read lots of opinion pieces and references to studies I didnt understand"... thats not expertise. Did you take the time to understand the math and data behind the current climate change theories you claim to disagree with?

In other words, how can you show you have expertise?

@icedquinn @realcaseyrollins @crunklord420 @commandlinekid

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.