Click here to Skip to main content
15,901,205 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralClearScript Pin
Marc Clifton19-Apr-18 1:58
mvaMarc Clifton19-Apr-18 1:58 
GeneralRe: ClearScript Pin
GKP199219-Apr-18 2:20
professionalGKP199219-Apr-18 2:20 
GeneralRe: ClearScript Pin
CodeWraith19-Apr-18 2:40
CodeWraith19-Apr-18 2:40 
QuestionRe: ClearScript Pin
CPallini19-Apr-18 3:10
mveCPallini19-Apr-18 3:10 
AnswerRe: ClearScript Pin
Marc Clifton19-Apr-18 3:58
mvaMarc Clifton19-Apr-18 3:58 
GeneralRe: ClearScript Pin
CPallini19-Apr-18 8:05
mveCPallini19-Apr-18 8:05 
GeneralRe: ClearScript Pin
Marc Clifton20-Apr-18 2:50
mvaMarc Clifton20-Apr-18 2:50 
GeneralRe: ClearScript Pin
Marc Clifton19-Apr-18 3:18
mvaMarc Clifton19-Apr-18 3:18 
CodeWraith wrote:
Why don't you add scripting with C#?


A few reasons -- the compile-time overhead, and for many things I basically just need expression evaluation as opposed to code compilation, and since this is going to be actually a Javascript app and I'm just prototyping the ideas in C#, I want the scripts to be Javascript. So, one of the things that caught my eye about ClearScript was this:
engine.Execute("var uriQuery = uri.Query;");
var result = engine.Evaluate("Math.sqrt(Math.PI)");

While you can execute Javascript, you can also simply evaluate an expression. And while there are expression evaluators out there, I also needed something that works with native Javascript types, like dictionaries and arrays, so it seemed reasonable to use a language and its syntax that most people would be familiar with, especially if one wants to something more than just evaluation.

That said, GitHub - PetroProtsyk/SSharp: S# is a weakly-typed dynamic language and runtime infrastructure to make your applications extendable, customizable and highly flexible. was also a consideration but the project hasn't been maintained in years, which was a significant deterrent.
Latest Article - Building a Prototype Web-Based Diagramming Tool with SVG and Javascript

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: ClearScript Pin
CodeWraith19-Apr-18 4:08
CodeWraith19-Apr-18 4:08 
GeneralSometimes solutions are over engineered Pin
Nagy Vilmos19-Apr-18 1:23
professionalNagy Vilmos19-Apr-18 1:23 
GeneralRe: Sometimes solutions are over engineered Pin
Eddy Vluggen19-Apr-18 1:40
professionalEddy Vluggen19-Apr-18 1:40 
GeneralRe: Sometimes solutions are over engineered Pin
CPallini19-Apr-18 1:42
mveCPallini19-Apr-18 1:42 
GeneralRe: Sometimes solutions are over engineered Pin
Nagy Vilmos19-Apr-18 1:47
professionalNagy Vilmos19-Apr-18 1:47 
GeneralRe: Sometimes solutions are over engineered Pin
dan!sh 19-Apr-18 1:51
professional dan!sh 19-Apr-18 1:51 
GeneralRe: Sometimes solutions are over engineered Pin
glennPattonWork319-Apr-18 2:01
professionalglennPattonWork319-Apr-18 2:01 
GeneralRe: Sometimes solutions are over engineered Pin
Nagy Vilmos19-Apr-18 2:19
professionalNagy Vilmos19-Apr-18 2:19 
GeneralRe: Sometimes solutions are over engineered Pin
Jörgen Andersson19-Apr-18 3:27
professionalJörgen Andersson19-Apr-18 3:27 
GeneralRe: Sometimes solutions are over engineered Pin
Nagy Vilmos19-Apr-18 3:55
professionalNagy Vilmos19-Apr-18 3:55 
GeneralRe: Sometimes solutions are over engineered Pin
Jörgen Andersson19-Apr-18 3:56
professionalJörgen Andersson19-Apr-18 3:56 
GeneralRe: Sometimes solutions are over engineered Pin
W Balboos, GHB19-Apr-18 2:28
W Balboos, GHB19-Apr-18 2:28 
GeneralRe: Sometimes solutions are over engineered Pin
Nagy Vilmos19-Apr-18 3:56
professionalNagy Vilmos19-Apr-18 3:56 
GeneralTaking a break Pin
Jacquers18-Apr-18 23:12
Jacquers18-Apr-18 23:12 
GeneralRe: Taking a break Pin
CodeWraith18-Apr-18 23:23
CodeWraith18-Apr-18 23:23 
GeneralRe: Taking a break Pin
Jacquers18-Apr-18 23:29
Jacquers18-Apr-18 23:29 
GeneralRe: Taking a break Pin
GKP199218-Apr-18 23:38
professionalGKP199218-Apr-18 23:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   502 votes