Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^5: Is it possible to create a single Hash-of-Hash.. with multiple threads..

by BrowserUk (Pope)
on May 03, 2014 at 07:46 UTC ( #1084870=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
                if( exists $copyRef->{ $step } ) {
                     $copyRef = $copyRef->{ $step };
                     lock %{ $copyRef };
                     $copyRef = $copyRef->{ $step } = &share( {} );
  2. or download this
                lock %{ $copyRef };
                $copyRef = $copyRef->{ $step } //= &share( {} )
  3. or download this
    my %subhash;
    lock %mainSharedHash;
    $mainSharedHash{ $key } = shared_clone( \%subhash );
  4. or download this
    my %subhash :shared:
    ... # populate it
    lock %mainSharedHash;
    $mainSharedHash{ $key } = \%subhash;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1084870]
[Corion]: Once more, I'm looking for a sane client-side framework, but I guess these don't exist. Everything I look at either uses a weirdo home-grown templating language (like Angular in all its incarnations) or uses weirdo Javascript incarnations (like ...
[Corion]: ... Inferno.js, which uses ES2015) or uses some horrible amount of Javascript infrastructure before you can even render a single file.
[Corion]: I'd really like to create a dynamic frontend for my Google Keep clone, but so far, all the templating solutions seem to bring their own template language or require me to hand-code everything in (their own flavour of) Javascript. I'd like something ...
[Corion]: ... that can use templates from the HTML (via <script language="text/ template">... my template ...</script> and otherwise gets out of my way. But it seems that is not how the Javascript world is, currently :-/
[Corion]: I guess my question is, has anybody worked with React, Ember, Angular (v2, v4, v.whatever) or any other JS client-side dynamic rendering/virtual DOM thingie and found a simple, single-file solution like jQuery?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-03-27 19:00 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.