Questions tagged [nemerle]

Nemerle is a general-purpose, multi-paradigm programming language for the .Net platform.

Nemerle is a general-purpose, multi-paradigm programming language for the .Net platform. It is as easy to learn and use as C# or VB.NET but Nemerle is by far more powerful. One may start using it as an advanced C# and then, as learning goes on, employ a range of cool features enabling metaprogramming and functional programming. The metaprogramming is based on macros bearing some similarity to Lisp.

Supported paradigms: Object-Oriented Programming (OOP), Functional Programming (FP), Metaprogramming (MP), Component-Oriented Programming (COP), DSL-Oriented Programming (DOP) or Language Oriented Programming (LOP).

Type system: static typing, strong typing, inferred, nominal.

Influenced by: C# (OOP & Imperative support), ML (FP support), Lisp (macros support).

Supported Platforms: CLI (.Net & Mono).

Official sites and communities:
http://nemerle.org/About/
https://github.com/rsdn/nemerle
https://groups.google.com/forum/?fromgroups#!forum/nemerle-en
http://rsdn.ru/forum/nemerle/

58 questions
3
votes
1 answer

Nemerle Custom Operator Problem

What would like to able to write in my code is the following. c² = a² + b² To begin with I tried creating a macro for ² first. I have tried the following. macro @² (x) syntax (x,"²") { <[ ($x * $x) ]> } But I get expecting an identifier…
Adam Speight
  • 712
  • 1
  • 9
  • 21
3
votes
2 answers

F# match with ->

I want to make something like it (Nemerle syntax) def something = match(STT) | 1 with st= "Summ" | 2 with st= "AVG" => $"$st : $(summbycol(counter,STT))" on F# so is it real with F#?
cnd
  • 32,616
  • 62
  • 183
  • 313
3
votes
2 answers

Infix format for Nemerle macro

Say I need some very special multiplication operator. It may be implemented in following macro: macro @< } And I can use it like def val = 2 <
noetic
  • 292
  • 4
  • 10
3
votes
1 answer

Reading byte array Textbox -> byte[]

I've got Textbox with a string like 89 3d 2c c0 7f 00 How to store it to Byte[] (byte array) variable ? Now I can read only one dec value :( Value=BitConverter.GetBytes(Int32.Parse(this.textBox3.Text.ToString()));
cnd
  • 32,616
  • 62
  • 183
  • 313
3
votes
6 answers

How to avoid writing repetitive code for different numeric types in .NET

I am trying to write generic Vector2 type which would suite float, double, etc. types and use arithmetical operations. Is there any chance to do it in C#, F#, Nemerle or any other more or less mature .NET language? I need a solution with (1)good…
ironic
  • 8,368
  • 7
  • 35
  • 44
3
votes
1 answer

How to hide console after creating form in console application

I want to hide my console after creating a from in my console application. And then show it again after closing form :) or somewhere when I want ... Console.Hide??? Application.Run(nForm()); Console.Show???
cnd
  • 32,616
  • 62
  • 183
  • 313
3
votes
2 answers

How to install Nemerle with VS2012

I have installed NemerleSetup-net. This created a Nemerle folder in c:\Program File(x86)\Nemerle but no extensions in VS2012 Common7\IDE\Extensions and so, I can't find any project template in the IDE Could someone help me ? Thanks.
Salvatore
  • 61
  • 4
3
votes
2 answers

Including the Nemerle compiler in code repository

I'm trying to include the Nemerle compiler into my source code repository so that it can be built without Nemerle being installed in the build server. Currently my source code directory looks like this: - [MySolutionFolder] --- [.build] ------…
MattDavey
  • 8,897
  • 3
  • 31
  • 54
3
votes
3 answers

What's the use of chords?

Languages such as Nemerle support the idea of chords. I'd like to know what their practical use is.
Dmitri Nesteruk
  • 23,067
  • 22
  • 97
  • 166
2
votes
1 answer

Nemerle Extension Property

Recently there was a discussion about adding Extension Property to Nemerle language. But the syntax is unclear. Updated proposed syntax: module MExtension { [ExtensionProperty(string)] public StringProp : int { get; set; } …
NN_
  • 1,593
  • 1
  • 10
  • 26
2
votes
2 answers

Enumerate all types in an assembly inside a macro

How to get all types in the assembly inside a macro attribute of kind MacroTargets.Assembly in Nemerle?
Liviu
  • 595
  • 4
  • 11
2
votes
0 answers

Nemerle - How do I write a method signature with a generic constraint and "requires" condition?

Using Nemerle, I want to create a method that has a generic type constraint and a 'requires' pre-condition. What is the proper order/syntax for these, with respect to the return type of the method? Here is a C# example of what I want: //Count the…
JamesFaix
  • 8,050
  • 9
  • 37
  • 73
2
votes
1 answer

Are there any DLL files that an application written in Nemerle needs to include?

When I deploy an application written in Nemerle, is there any DLL file specific for Nemerle that needs to be installed? If there are such DLL files, which are they?
apaderno
  • 28,547
  • 16
  • 75
  • 90
2
votes
2 answers

Integrating Nemerle in Visual C# 2010 Express

I would like to use Nemerle to write parts of a .NET application. Is there a plugin for Visual C# 2010 Express? The only one I found returns an error because it is thought for a different version of Visual C#.
apaderno
  • 28,547
  • 16
  • 75
  • 90
2
votes
1 answer

WriteProcessMemory

Ok... I want to make win32api WriteProcessMemory works. (Just for learning winAPI on .Net platforms ! ^___^) I'm using Nemerle but the syntax is similar C# and I can read C# code sure. So here is my steps : 1) get win api…
cnd
  • 32,616
  • 62
  • 183
  • 313