Skip to main content

Home/ Aasemoon'z Cluster/ Group items tagged functional

Rss Feed Group items tagged

Aasemoon =)

A Postfunctional Language | The Scala Programming Language - 0 views

  • The past couple of years have seen some extended debates on whether Scala is a functional language. On the one hand, Scala offers essentially all programming constructs typically associated with functional programming and a lot of Scala code is purely functional. On the other hand quite a few people disagree that Scala is a functional language. For instance, Robert Fischer writes that Scala is Not a Functional Programming Language and Daniel Spiewak summarizes some of the arguments asking Is Scala Not Functional Enough?
Aasemoon =)

Introduction to CRUD Functions in PHP - 0 views

  • Building a dynamic PHP site requires you to understand how CRUD (create, read, update, delete) functions work. There are a variety of ways to implement these functions include databases, and most commonly through mySQL.  With these functions you can add new entries to the database (registration), view existing entries (retrieve users or fields), update the entries to your table or delete users (who may unsubscribe or permanently delete their accounts.) For a user account based sites, these functions are essential for keeping your user and information database up to date.
Aasemoon =)

C9 Lectures: Dr. Ralf Lämmel - The Quick Essence of Functional Programming | ... - 0 views

  • We had to cover monads eventually, and there are many great monad tutorials out there (see, for example, here: http://www.haskell.org/haskellwiki/Tutorials#Using_monads). In fact, there are web resources concerned solely with organizing the many monad tutorials available in the wild, and developing new monad tutorials seems to be a popular sport in the Haskell community.Today, Ralf Lämmel's lecture goes back to the roots, essentially revisiting Wadler's "The essence of functional programming"—the 1992 paper that discovered monads and popularized their use in functional programming. Ralf Lämmel's lecture and accompanying code distribution show Wadler's seminal insight: those original scenarios and observations still make sense today. Indeed, Simon Marlow (a Haskell/GHC high priest @ MSR Cambridge) recently noted: "it's still the best monad tutorial" (see http://twitter.com/simonmar/status/21397398061).
Aasemoon =)

Functional C#: LINQ vs Method chaining at Mark Needham - 0 views

  • One of the common discussions that I've had with several colleagues when we're making use of some of the higher order functions that can be applied on collections is whether to use the LINQ style syntax or to chain the different methods together. I tend to prefer the latter approach although when asked the question after my talk at Developer Developer Developer I didn't really have a good answer other than to suggest that it seemed to just be a personal preference thing. Damian Marshall suggested that he preferred the method chaining approach because it more clearly describes the idea of passing a collection through a pipeline where we can apply different operations to that collection.
Aasemoon =)

C9 Lectures: Dr. Don Syme - Introduction to F#, 1 of 3 | Going Deep | Channel 9 - 0 views

  • F# is Microsoft's first functional programming language to be included as one of Visual Studio's official set of languages. F# is a succinct, efficient, expressive functional/object-oriented programming language under joint development by Microsoft Developer Division and Microsoft Research. During the course of Erik Meijer's fantastic lecture series on functional programming fundamentals several of you asked for examples of specific topics in F#. Well, we listened. Dr. Don Syme is a principal researcher in MSR Cambridge. He has a rich history in programming language research, design, and implementation (C# generics being one of his most recognized implementations), and is the principle creator of F#. Who better to lecture on the topic than Don? This three part series will serve as an introduction to F#, including insights into the rationale behind the history and creation of Microsoft's newest language.
Aasemoon =)

TechOnline | ADMS Signals: Nets of User-defined Type in Standard SystemVerilog for Even... - 0 views

  • A common requirement in digital-dominated mixed-signal verification is the need for purely event-driven models that imitate Spice or AMS blocks at low fidelity but high speed. Resolved record types are commonly used for this modeling style in VHDL-based flows. Unfortunately, SystemVerilog defines only one resolved net type, the logic type. A second, non-standard net type, wreal, has been borrowed from Verilog-AMS and, with proprietary extensions, added to some implementations of SystemVerilog. wreal is a single real value with a small, fixed set of resolution functions. It solves only a subset of the problems commonly encountered in event-driven analog modeling. In contrast, the ADMS_signals approach is completely general and extensible while still conforming strictly to the IEEE SystemVerilog standard. The stored data type can be any type that is legal in SystemVerilog, including arrays and structs (nested to arbitrary depth) and even class instances (objects). The resolution function is a user-supplied SystemVerilog function. Different networks in the same design hierarchy may be given distinct stored type and resolution function.
Aasemoon =)

Dr Dobbs - F#: Putting the 'Fun' into 'Functional' - 0 views

  • You would be forgiven if you thought the "F" in F# -- which made its debut as part of Visual Studio 2010 -- stands for "functional." After all, F# (pronounced "F sharp") is a functional programming language for the .NET Framework that combines the succinct, expressive, and compositional style of functional programming with the runtime, libraries, interoperability, and object model of .NET. But Don Syme, inventor of F# and leader of the team that incubated the language, has a different, truncated, and entirely whimsical definition. "In the F# team," says Syme, a principal researcher at Microsoft Research Cambridge, "We say, 'F is for Fun.' F# enables users to write simple code to solve complex problems. Programming with F# really does make many programming tasks simpler, and our users have consistently reported that they've found using the language enjoyable." Indeed, F#, which has been developed in a partnership between Microsoft Research and the Microsoft Developer Division, is already popular with the .NET developer community. The language is widely known in the academic community and among thought leaders, and the list of admirers will only increase as Visual F#, the result of a partnership between Microsoft Research Cambridge and Microsoft's Developer Division, becomes a first-class language in Visual Studio 2010.
Aasemoon =)

Develop Web Apps in F# with WebSharper | .NET Zone - 1 views

  • In ASP.NET development, F# also offers productivity advantages over VB and C#.  F# is different because it is statically checked and type-safe.  It addresses weaknesses in ASP.NET development like untyped values, complex form construction, and using strings for IDs and method names that connect markup with code-behind (class-files).  Writing a web application in F# on the WebSharper platform can be less-time consuming if a developer is not great at writing web apps in JavaScript.  Through WebSharper, developers can write a web app using a large subset of F# and .NET core libraries and then just let WebSharper map the code to JavaScript.  WebSharper can integrate with ASP.NET applications, but it is different from the standard approach because it builds applications from miniature web pages called "pagelets".  The pagelets correspond to functions on the client-side and they are automatically translated into JavaScript.   WebSharper supports a wide range of JavaScript libraries, making it easy for developers to optimize their code in whatever way they choose.  jQuery, qooxdoo, Flapjax, and Yahoo UI are all supported by WebSharper.  The leap from F# to JavaScript is manageable because both are functional languages that support lambda expressions and closures.  Another unique part of WebSharper is a "formlet".  A formlet is a special pagelet that provides form functionality.  Formlets in Web Sharper run and validate on the client, submitting their result to a either a client- or a server-side callback.
Aasemoon =)

F# in ASP.NET, mathematics and testing | .NET Zone - 0 views

  • Starting from Visual Studio 2010 F# is full member of .NET Framework languages family. It is functional language with syntax specific to functional languages but I think it is time for us also notice and study functional languages. In this posting I will show you some examples about cool things other people have done using F#.
Aasemoon =)

Sensorless BLDC motor control using a Majority Function Part 1 of 2 | Your Electronics ... - 0 views

  • Here is the agenda for today’s seminar. We will recall the principles of controlling a brushless DC motor. Secondly we will discuss the back EMF sensing method used in this sensorless technique. We will also cover the principles of digital filter and the so called majority function. Last section of this seminar discusses the motor start up sequence and the sensorless operation.
Aasemoon =)

Leveraging FPGA and CPLD digital logic to implement analog to digital converters - 0 views

  • Ted Marena of Lattice Semiconductor Corp., points out that designers of digital systems are familiar with implementing the 'leftovers' of their digital design by using FPGAs and CPLDs to glue together various processors, memories, and standard function components on their printed circuit board. In addition to these digital functions, FPGAs and CPLDs can also implement common analog functions using an LVDS input, a simple resistor capacitor (RC) circuit and some FPGA or CPLD digital logic elements to create an analog to digital converter (ADC).
Aasemoon =)

Cleve's Corner - "Magic" Reconstruction: Compressed Sensing - MathWorks Newsletter - 1 views

  • When I first heard about compressed sensing, I was skeptical. There were claims that it reduced the amount of data required to represent signals and images by huge factors and then restored the originals exactly. I knew from the Nyquist-Shannon sampling theorem that this is impossible. But after learning more about compressed sensing, I’ve come to realize that, under the right conditions, both the claims and the theorem are true. The Nyquist-Shannon sampling theorem states that to restore a signal exactly and uniquely, you need to have sampled with at least twice its frequency. Of course, this theorem is still valid; if you skip one byte in a signal or image of white noise, you can’t restore the original. But most interesting signals and images are not white noise. When represented in terms of appropriate basis functions, such as trig functions or wavelets, many signals have relatively few non-zero coefficients. In compressed (or compressive) sensing terminology, they are sparse.
Aasemoon =)

InfoQ: Don Syme Answering Questions on F#, C#, Haskell and Scala - 1 views

  • In this interview made by InfoQ’s Sadek Drobi, Don Syme, a Senior Researcher at Microsoft Research, answers questions mostly on F#, but also on functional programming, C# generics, type classes in Haskell, similarities between F# and Scala.
Aasemoon =)

Five Tips for Improving IntelliJ IDEA Performance | geek listed - 0 views

shared by Aasemoon =) on 02 Jan 10 - Cached
  •  
    Since I totally luv IDEA...... "We use JetBrains IntelliJ IDEA Java IDE and love its features, functionality, and price point. Dealing with its performance is another matter, however. When developing Seam 2.x applications, IDEA can just crawl - and this is when sticking to just one project or SVN branch at a time. Some of the biggest performance hits our team has noticed are: 1. File indexing on IDEA startup 2. Long code completion times when editing XHTML/JSF files 3. Pauses when switching from one Java or XHTML file to another 4. Calls to Ant targets can drag on forever for no apparent reason while others time they are tidy and fast Here is a collection of ideas on how to improve the performance of IDEA; note that not all of these will be applicable to your environment or application. For example, we wouldn't consider turning off local history options as this is invaluable. 1. If you're not using Subversion or other version control system, turn off synchronized files. This can be disabled from the Settings -> General, and disabling "Synchronize Files on Frame Activation". 2. Revert to IDEA's original visual interface. Browse to Settings -> Appearance and select the "IDEA 4.5 Default" theme. 3. Decrease the size of local history of code changes. Even if you find this feature invaluable, you can still improve performance of IDEA by reducing the number of days of local history IDEA will store. By default this option is set to three days! 4. Disable unused plugins. You mean you're not developing GWT apps and you're not working with JetGroovy? Great, then why not disable some of those plugins? 5. Increase the IDEA Java VM heap size. I can attest to this offering much improved performance; if you can spare the memory, follow these directions: 1. locate your Program Files/JetBrains/IDEA x.x/bin directory 2. open idea.exe.vmoptions 3. modify Xms, Xmx, and XX:MaxPermSize settings as needed"
Aasemoon =)

PRODUCT HOW TO - Embedding multicore PCs for Robotics & Industrial Control | Industrial... - 0 views

  • PC-compatible industrial computers are increasing in computing power at a rapid rate due to the availability of multi-core microprocessor chips, and Microsoft Windows has become the de-facto software platform for implementing human-machine interfaces (HMIs). PCs are also becoming more reliable. With these trends, the practice of building robotic systems as complex multi-architecture, multi-platform systems is being challenged. It is now becoming possible to integrate all the functions of machine control and HMI into a single platform, without sacrificing performance and reliability of processing. Through new developments in software, we are seeing industrial systems evolving to better integrate Windows with real-time functionality such as machine vision and motion control. Software support to simplify motion control algorithm implementation already exists for the Intel processor architecture.
Aasemoon =)

Khronos Unleashes Cutting-Edge, Cross-Platform Graphics Acceleration with OpenGL 4.0 - 0 views

  • The Khronos™ Group today announced the release of the OpenGL® 4.0 specification; a significant update to the most widely adopted 2D and 3D graphics API (application programming interface) that is deployed on all major desktop operating systems.  OpenGL 4.0 brings the very latest in cross-platform graphics acceleration and functionality to personal computers and workstations and the OpenGL standard serves as the basis for OpenGL® ES, the graphics standard on virtually every shipping smart phone.   The OpenGL 4.0 specification has been defined by the OpenGL ARB (Architecture Review Board) working group at Khronos, and includes the GLSL 4.00 update to the OpenGL Shading language in order to enable developers to access the latest generation of GPU acceleration with significantly enhanced graphics quality, acceleration performance and programming flexibility.  This new release continues the rapid evolution of the royalty-free OpenGL standard to enable graphics developers to portably access cutting-edge GPU functionality across diverse operating systems and platforms. The full specification is available for immediate download at http://www.opengl.org/registry .
Aasemoon =)

IEEE Spectrum: The Wave Function and Quantum Dots: Nanotechnology Videos - 0 views

  • The other day I was critical of the UK’s nanotechnology strategy document. However, I am a great admirer of the UK scientists and engineers working in the field of nanotechnology, which makes the recent strategy document such a double disappointment. To sort of atone for my criticism, I wanted to highlight a UK-based researcher, Professor Philip Moriarty at the University of Nottingham, who first came to my attention a few years back on the pages of Richard Jones’ blog Soft Machines , when Moriarty had organized a debate on the subject of radical nanotechnology, otherwise known as molecular nanotechnology. I also recently noted his ability to secure funding for his research to test the theories of molecular manufacturing, and wondered if he can do it why aren’t more molecular manufacturing theorists doing it.
Aasemoon =)

Tom's Declarative Languages Blog: The Monad Zipper - 0 views

  • Bruno Oliveira and I are working on a functional pearl called The Monad Zipper (*). You know how dealing with monad transformers can be quite awkward -- especially when developing highly modular programs where every component comes with its own effects?Well, we bring relief in this situation by applying Huet's zipper to a type-level data structure: the monad stack.We're submitting to ICFP on April 2, and would greatly appreciate your feedback on the current draft. Please let us know what you think of the presented approach, the clarity and style of writing, examples of situations where you could have used the monad zipper, ...(*) not to be confused with the zipper monad
Aasemoon =)

Don Syme's WebLog on F# and Related Topics : F# 2.0 Released - 0 views

  • Today sees the launch of Visual Studio 2010, at five launch events around the world, as announced by Bob Muglia, Jason Zander and S. Somasegar, and presented live today in Las Vegas.   Visual Studio 2010 includes the official version 2.0 of the F# language. As is our custom on the F# team, we also release a matching MSI and ZIP of F# 2.0 (for use with Visual Studio 2008 and as a standalone compiler on a range of platforms)   Today represents the culmination of 7 years of work on the language at Microsoft Research, and, more recently, the Microsoft Developer Division. I am immensely proud of what we’ve achieved. F# brings a productive functional and object-oriented programming language to .NET, extending the platform to new audiences in technical, algorithmic, data-rich, parallel and explorative domains, and its inclusion in Visual Studio 2010 represents a huge milestone for the language.   To help understand what we’re doing with F#, I’ve listed some of the common questions people have about the language below.  We thank everyone who has been involved in the production of F#, especially the many users who have given us feedback on the language!
Aasemoon =)

robots.net - BioRC Fabricates Functioning Synapse - 1 views

  • There is a long history of attempts at replicating neural systems either in software or in conventional semiconductors, such as the FACETS project (not to mention the creation of conventional logic gates from lab-grown biological neurons!) According to a USC Viterbi news release, researchers at the BioRC project, whose goal is research on an artificial cortex, have succeeded in creating a functioning synapse from carbon nanotubes. The new research was presented by Alice C. Parker in the paper "A biomimetic fabricated carbon nanotube synapse for prosthetic applications" at the Life Science Systems and Applications Workshop in April 2011. (unfortunately the actual paper is behind a paywall but the abstract is readable). An earlier paper, "A Biomimetic Carbon Nanotube Synapse Circuit", describes the proposed design of synapse including schematics and comparison with biological neural
1 - 20 of 52 Next › Last »
Showing 20 items per page