amd

requirejs, almond: A stand alone module built with almond loads all dependencies, but the main code is not executed

怎甘沉沦 提交于 2019-12-14 04:01:55
问题 I am trying to build a stand alone module with almond and this is my setup. The question is at the bottom. Abbreviated directory structure is: |-static |-core |-js |-require.js |-almond.js |-common.js |-app.build.js |-app |-myApp.js |-vendor |-js |-jquery.js |-bootstrap.js |-fancybox.js Abbreviated contents of common.js: require.config({ baseUrl: "/static/core/js", paths: { 'jquery':'../../vendor/jquery/1.7.2/jquery', 'bootstrap':'../../vendor/bootstrap/2.2.2/js/bootstrap', 'fancybox':'../..

What are the costs of failed store-to-load forwarding on x86?

我怕爱的太早我们不能终老 提交于 2019-12-14 01:38:37
问题 What are the costs of a failed store-to-load forwarding on recent x86 architectures? In particular, store-to-load forwarding that fails because the load partly overlaps an earlier store, or because the earlier load or store cross some alignment boundary that causes the forwarding to fail. Certainly there is a latency cost: how big is it? Is there also a throughput cost, e.g., does a failed store-to-load forwarding use additional resources that are then unavailable to other loads and stores,

Download OpenCL AMD APP SDK 3.0 for windows and linux

瘦欲@ 提交于 2019-12-14 01:12:09
问题 I want to download standalone version of OpenCL AMD APP SDK 3.0 for Windows and Linux. 回答1: AMD has remove the files from their servers. There is a copy in the internet here: For Windows For Linux 回答2: Or you can use OCL SDK instead https://gpuopen.com/compute-product/opencl-sdk/ https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases 来源: https://stackoverflow.com/questions/53070673/download-opencl-amd-app-sdk-3-0-for-windows-and-linux

RequireJS randomly loads wrong filename with AMD modules

故事扮演 提交于 2019-12-13 18:30:07
问题 I have my config (main.js) defined as: require.config({ urlArgs: "bust=" + (new Date()).getTime(), paths: { jquery: 'jquery-1.8.3.min', knockout: 'knockout-2.2.0', komapping: 'knockout.mapping-latest', token: 'jquery.tokeninput' }, shim: { 'token': ['jquery'] } }); EDIT main.js is a shared configuration. I have several pages that all use the same setup and I don't want to need to modify version-specific filenames all over the place in my project. /EDIT and included in the page as: <script src

Run function loaded from ecmascript 6 module

时光怂恿深爱的人放手 提交于 2019-12-13 05:15:01
问题 I try to use ecmascript 6 modules system for first time. I use traceur compiler. Given two es6 files: // app.js export function row() { alert('row'); } // init.js import { row } from 'public_js/app'; row(); Traceur (I use grunt-traceur task) compiles them to: // app.js System.register("public_js/app", [], function() { "use strict"; var __moduleName = "public_js/app"; function row() { alert('row'); } return {get row() { return row; }}; }); // init.js System.register("public_js/init", [],

requirejs: Build settings for a common.js module along with a main.js module where the result will be only two .js files served

a 夏天 提交于 2019-12-13 04:34:37
问题 When following the general setup of example-multipage provided in the docs the common.js module seems to cause dependencies to make async XMLHttpRequest calls. my directory structure is: |-static |-core |-js |-myApp.js |-require.js |-common.js |-app.build.js |-app |-myApp.js |-vendor |-js |-jquery.js |-bootstrap.js |-fancybox.js contents of common.js: require.config({ baseUrl: "/static/core/js", paths: { 'jquery':'../../vendor/jquery/1.7.2/jquery', 'bootstrap':'../../vendor/bootstrap/2.2.2/js

BackboneJS + Require JS + Wookmark.js plugin not working

孤街醉人 提交于 2019-12-13 03:51:46
问题 I have a Backbone App bound together with RequireJS. Now I want to use the Wookmark plugin https://github.com/GBKS/Wookmark-jQuery but for some reason I cant get it running. So I did the following: My config.js: require.config({ deps: ['main'], paths: { jquery : '../lib/jquery-2.1.0.min', underscore : '../lib/lodash-2.4.1', backbone : '../lib/backbone', layoutmanager : '../lib/backbone.layoutmanager', handlebars : '../lib/handlebars/handlebars-v1.3.0', imagesLoaded : '../lib/jquery

PhoneGap / Cordova 1.6 and dojo 1.7.2 AMD works from web, not from local?

佐手、 提交于 2019-12-13 01:13:48
问题 I have recently upgraded my PhoneGap/dojo1.6 app to cordova 1.6 and everything works just fine. Then I upgraded to dojo 1.7.2 using hosted dojo: [script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js" data-dojo-config="async: true"][/script] And again, everything works fine. But when I tried to use local dojo, much like I did when using dojo1.6 and cordova1.6, the dojo.js is found and loaded, but the app won't start/load other dojo module files. [script src="dojo1.7.2/dojo

Typescript AMD Target Resolving to CommonJS [duplicate]

我与影子孤独终老i 提交于 2019-12-13 00:13:26
问题 This question already has an answer here : TypeScript compilation of RequireJS module generates line Object.defineProperty(exports, “__esModule”, { value: true }); How to get rid of it? (1 answer) Closed 2 years ago . I have a tsconfig in my project that specifies a module target of 'amd' but when my file compiles I am getting an output that looks more like CommonJS. Example: tsconfig: { "compilerOptions": { "module": "amd", "target": "es5", "moduleResolution": "node", "sourceMap": false,

How does AMD (require.js) handle multiple classes in a single non-amd js file?

拈花ヽ惹草 提交于 2019-12-12 17:28:08
问题 I'm using a bunch of components from the MootoolsMore library which are all compiled into a single .js file. Is there a way to define the library once in the shim and have access to all the class with in it? The following doesn't work, but how would I do something like this? shim:{ mootoolsMore:{ deps : ["mootools"] exports : ["Slider", "Sortables"] } } // then inside my module I could access the Slider component like so define( function(require) { var Slider = require('mootoolsMore').Slider