#clojurescript
Explore tagged Tumblr posts
gima326 · 2 months ago
Text
型付き配列(TypedArray)を扱う
型の上限/下限を超えると値をぐるぐるする挙動が面白いな、と。 cljs.user=> (let[u8 (js/Uint8Array. 1)] (aset u8 0 255) u8) #object[Uint8Array 255]
cljs.user=> (let[u8 (js/Uint8Array. 1)] (aset u8 0 256) u8) #object[Uint8Array 0]
cljs.user=> (let[u8 (js/Uint8Array. 1)] (aset u8 0 257) u8) #object[Uint8Array 1] cljs.user=> (let[u8 (js/Uint8Array. 1)] (aset u8 0 -1) u8) #object[Uint8Array 255] 値がクランプされる(値は、型の上限/下限で足切りされる)。 cljs.user=> (let[val (js/Uint8ClampedArray. 1)] (aset val 0 257) val) #object[Uint8ClampedArray 255] cljs.user=> (let[val (js/Uint8ClampedArray. 1)] (aset val 0 -1) val) #object[Uint8ClampedArray 0]
0 notes
holyjak · 1 year ago
Text
Great article / exploration by Peter Strömberg about various options for working with JSON data in clojure/script. For bigger data, cljs' clj<->js may become too expensive (as demonstrated). A clear winner is to skip JSON.parse and use instead transit/read (at the cost of getting string, not keyword keys) - this can be reportedly 20-30x faster than JSON.parse + js->clj. There are also other interesting alternatives, such as cljs-bean that wraps the mutable JS data with Clojure abstractions, so that you can use core fns w/o a conversion (but turning this back to JS is expensive).
0 notes
vanishingmoments · 5 months ago
Text
It's very unfortunate that I don't want to learn most of the programming languages my friends (and most other people) write code in and they (and most other people) don't want to learn the ones I write in
1 note · View note
ceausescue · 2 years ago
Text
i hate to say it, i truly hate to say it, but javascript kinda good now? i know! i know what you're thinking. but ive been reading a lot of javascript examples bc ive been playing around in clojurescript and there's some neat stuff going on. they are using anonymous objects, no class, to do data driven programming. they have primitive protomonads (!) that let them contain side effects and handle different errors in a pipeline. compared to other widely used languages it's tolerable!
1 note · View note
arielc-us · 2 days ago
Text
Tumblr media
ClojureScript
0 notes
hackernewsrobot · 3 days ago
Text
ClojureScript forks Google Closure Library to guarantee backward compatibility
https://clojurescript.org/news/2025-05-16-release
0 notes
guiltiest-gear · 2 years ago
Note
Considering there's things like fennel (lua + lisp), hy (python + lisp), clojure (java + lisp), clojurescript (javascript + lisp), scheme and so many more
People just keep adding lisp to languages and good god why
girl help I'm being burned at the stake after calling fortran neat and understandable
Fortran is ok I guess, but at least it's not as messy as every single lisp dialect
12 notes · View notes
thepause · 6 years ago
Text
syng.im - open source mobile ethereum client
syng.im – open source mobile ethereum client
Jarrad Hope gives an update on Syng.io and the state of Mobile Ethereum computing.
Amsterdam Ethereum Meetup: Hosted by Pascal Van Hecke of InnoPay:
Music: RetroFuture Clean by Kevin MacLeod (incompetech.com)
View On WordPress
3 notes · View notes
kuba-a-svet · 3 years ago
Text
4x smaller, 50x faster · asciinema blog
ClojureScript is awesome but it isn't always the optimal solution. Here a browser cljs app was rewritten in Rust + JS (and replaced React with SolidJS). The key motivation was to use Rust (via WASM) for performance, which is still easier from JS. The bundle is smaller (550 -> 150kB, the ok being the WASM binary) because it doesn't pack the cljs standard library and React.
0 notes
michaelblume · 8 years ago
Text
There’s a dialect of Lisp called Clojure. There’s a variant of Clojure called Clojurescript, which compiles to Javascript. There’s a Javascript library called React which is used to make interactive web UIs in a simple and clear way.
There’s a library for using React from Clojurescript, which used to be called Cloact, until the author realized that this would just make everyone think about bird genitals whenever it was mentioned, and changed it to Reagent.
69 notes · View notes
holyjak · 1 year ago
Text
flex is a library for building computations using signals in Clojure(Script) - an approach made popular by SolidJS and others, recently. A "signal" is a reactive data holder, which updates when any of its dependencies change.
0 notes
wuggen · 3 years ago
Note
I'm interviewing with a company that uses Clojurescript, (ie a Clojure->Javascript compiler) for web apps. Is that... good?
Frankly I couldn't tell ya. Never used Clojure in my life. It's a Lisp which is definitely at least moderately more respectable than JS, and tbh a transpiler to JS from almost anything is preferable to rawdogging JS. Though the sheer number of javascript transpilers is actually a pretty big part of my annoyance with the state of web dev, like literally everyone fucking hates this language and literally everyone comes up with their own idiosyncratic way to avoid writing it directly, some of which depend on others in a convoluted and inscrutable tangle of dependencies, but that's just NPM as a whole really. Anyway, to answer your question, it's bad that you're writing web applications at all but if you're writing them in not JS or PHP then it's not as bad as it could be
4 notes · View notes
art-res · 6 years ago
Text
Open Source Pixel Art Programs
Tumblr media
https://github.com/collections/pixel-art-tools
Animated sprite editor & pixel art tool (Windows, macOS, Linux) https://www.aseprite.org
A simple web-based tool for Spriting and Pixel art. http://piskelapp.com
Pixel art animation and drawing web app powered by React https://www.pixelartcss.com/
A flat pixel art editor http://app.poxi.rocks
A collection of low-res primitives for creating art and games in React https://pixel8.vsmode.org/
an in-browser canvas tool which is great fun! https://make8bitart.com
Pixel art editor built on Clojurescript + Om Play with it here: http://jackschaedler.github.io/goya/.
Thanks for reading! If this post helped, please consider reblogging it or sharing it with your friends! ❤️
https://artres.xyz/post/fantastic-free-and-open-source-software-programs/
More useful articles and resources / support Art-Res | my art tumblr | Idea Generator | Check out the Art-Res Anatomy Ebook!
589 notes · View notes
arielc-us · 2 days ago
Text
Tumblr media
ClojureScript
0 notes
hydralisk98 · 5 years ago
Photo
Tumblr media
hydralisk98′s web projects tracker:
Core principles=
Fail faster
‘Learn, Tweak, Make’ loop
This is meant to be a quick reference for tracking progress made over my various projects, organized by their “ultimate target” goal:
(START)
(Website)=
Install Firefox
Install Chrome
Install Microsoft newest browser
Install Lynx
Learn about contemporary web browsers
Install a very basic text editor
Install Notepad++
Install Nano
Install Powershell
Install Bash
Install Git
Learn HTML
Elements and attributes
Commenting (single line comment, multi-line comment)
Head (title, meta, charset, language, link, style, description, keywords, author, viewport, script, base, url-encode, )
Hyperlinks (local, external, link titles, relative filepaths, absolute filepaths)
Headings (h1-h6, horizontal rules)
Paragraphs (pre, line breaks)
Text formatting (bold, italic, deleted, inserted, subscript, superscript, marked)
Quotations (quote, blockquote, abbreviations, address, cite, bidirectional override)
Entities & symbols (&entity_name, &entity_number, &nbsp, useful HTML character entities, diacritical marks, mathematical symbols, greek letters, currency symbols, )
Id (bookmarks)
Classes (select elements, multiple classes, different tags can share same class, )
Blocks & Inlines (div, span)
Computercode (kbd, samp, code, var)
Lists (ordered, unordered, description lists, control list counting, nesting)
Tables (colspan, rowspan, caption, colgroup, thead, tbody, tfoot, th)
Images (src, alt, width, height, animated, link, map, area, usenmap, , picture, picture for format support)
old fashioned audio
old fashioned video
Iframes (URL src, name, target)
Forms (input types, action, method, GET, POST, name, fieldset, accept-charset, autocomplete, enctype, novalidate, target, form elements, input attributes)
URL encode (scheme, prefix, domain, port, path, filename, ascii-encodings)
Learn about oldest web browsers onwards
Learn early HTML versions (doctypes & permitted elements for each version)
Make a 90s-like web page compatible with as much early web formats as possible, earliest web browsers’ compatibility is best here
Learn how to teach HTML5 features to most if not all older browsers
Install Adobe XD
Register a account at Figma
Learn Adobe XD basics
Learn Figma basics
Install Microsoft’s VS Code
Install my Microsoft’s VS Code favorite extensions
Learn HTML5
Semantic elements
Layouts
Graphics (SVG, canvas)
Track
Audio
Video
Embed
APIs (geolocation, drag and drop, local storage, application cache, web workers, server-sent events, )
HTMLShiv for teaching older browsers HTML5
HTML5 style guide and coding conventions (doctype, clean tidy well-formed code, lower case element names, close all html elements, close empty html elements, quote attribute values, image attributes, space and equal signs, avoid long code lines, blank lines, indentation, keep html, keep head, keep body, meta data, viewport, comments, stylesheets, loading JS into html, accessing HTML elements with JS, use lowercase file names, file extensions, index/default)
Learn CSS
Selections
Colors
Fonts
Positioning
Box model
Grid
Flexbox
Custom properties
Transitions
Animate
Make a simple modern static site
Learn responsive design
Viewport
Media queries
Fluid widths
rem units over px
Mobile first
Learn SASS
Variables
Nesting
Conditionals
Functions
Learn about CSS frameworks
Learn Bootstrap
Learn Tailwind CSS
Learn JS
Fundamentals
Document Object Model / DOM
JavaScript Object Notation / JSON
Fetch API
Modern JS (ES6+)
Learn Git
Learn Browser Dev Tools
Learn your VS Code extensions
Learn Emmet
Learn NPM
Learn Yarn
Learn Axios
Learn Webpack
Learn Parcel
Learn basic deployment
Domain registration (Namecheap)
Managed hosting (InMotion, Hostgator, Bluehost)
Static hosting (Nertlify, Github Pages)
SSL certificate
FTP
SFTP
SSH
CLI
Make a fancy front end website about 
Make a few Tumblr themes
===You are now a basic front end developer!
Learn about XML dialects
Learn XML
Learn about JS frameworks
Learn jQuery
Learn React
Contex API with Hooks
NEXT
Learn Vue.js
Vuex
NUXT
Learn Svelte
NUXT (Vue)
Learn Gatsby
Learn Gridsome
Learn Typescript
Make a epic front end website about 
===You are now a front-end wizard!
Learn Node.js
Express
Nest.js
Koa
Learn Python
Django
Flask
Learn GoLang
Revel
Learn PHP
Laravel
Slim
Symfony
Learn Ruby
Ruby on Rails
Sinatra
Learn SQL
PostgreSQL
MySQL
Learn ORM
Learn ODM
Learn NoSQL
MongoDB
RethinkDB
CouchDB
Learn a cloud database
Firebase, Azure Cloud DB, AWS
Learn a lightweight & cache variant
Redis
SQLlite
NeDB
Learn GraphQL
Learn about CMSes
Learn Wordpress
Learn Drupal
Learn Keystone
Learn Enduro
Learn Contentful
Learn Sanity
Learn Jekyll
Learn about DevOps
Learn NGINX
Learn Apache
Learn Linode
Learn Heroku
Learn Azure
Learn Docker
Learn testing
Learn load balancing
===You are now a good full stack developer
Learn about mobile development
Learn Dart
Learn Flutter
Learn React Native
Learn Nativescript
Learn Ionic
Learn progressive web apps
Learn Electron
Learn JAMstack
Learn serverless architecture
Learn API-first design
Learn data science
Learn machine learning
Learn deep learning
Learn speech recognition
Learn web assembly
===You are now a epic full stack developer
Make a web browser
Make a web server
===You are now a legendary full stack developer
[...]
(Computer system)=
Learn to execute and test your code in a command line interface
Learn to use breakpoints and debuggers
Learn Bash
Learn fish
Learn Zsh
Learn Vim
Learn nano
Learn Notepad++
Learn VS Code
Learn Brackets
Learn Atom
Learn Geany
Learn Neovim
Learn Python
Learn Java?
Learn R
Learn Swift?
Learn Go-lang?
Learn Common Lisp
Learn Clojure (& ClojureScript)
Learn Scheme
Learn C++
Learn C
Learn B
Learn Mesa
Learn Brainfuck
Learn Assembly
Learn Machine Code
Learn how to manage I/O
Make a keypad
Make a keyboard
Make a mouse
Make a light pen
Make a small LCD display
Make a small LED display
Make a teleprinter terminal
Make a medium raster CRT display
Make a small vector CRT display
Make larger LED displays
Make a few CRT displays
Learn how to manage computer memory
Make datasettes
Make a datasette deck
Make floppy disks
Make a floppy drive
Learn how to control data
Learn binary base
Learn hexadecimal base
Learn octal base
Learn registers
Learn timing information
Learn assembly common mnemonics
Learn arithmetic operations
Learn logic operations (AND, OR, XOR, NOT, NAND, NOR, NXOR, IMPLY)
Learn masking
Learn assembly language basics
Learn stack construct’s operations
Learn calling conventions
Learn to use Application Binary Interface or ABI
Learn to make your own ABIs
Learn to use memory maps
Learn to make memory maps
Make a clock
Make a front panel
Make a calculator
Learn about existing instruction sets (Intel, ARM, RISC-V, PIC, AVR, SPARC, MIPS, Intersil 6120, Z80...)
Design a instruction set
Compose a assembler
Compose a disassembler
Compose a emulator
Write a B-derivative programming language (somewhat similar to C)
Write a IPL-derivative programming language (somewhat similar to Lisp and Scheme)
Write a general markup language (like GML, SGML, HTML, XML...)
Write a Turing tarpit (like Brainfuck)
Write a scripting language (like Bash)
Write a database system (like VisiCalc or SQL)
Write a CLI shell (basic operating system like Unix or CP/M)
Write a single-user GUI operating system (like Xerox Star’s Pilot)
Write a multi-user GUI operating system (like Linux)
Write various software utilities for my various OSes
Write various games for my various OSes
Write various niche applications for my various OSes
Implement a awesome model in very large scale integration, like the Commodore CBM-II
Implement a epic model in integrated circuits, like the DEC PDP-15
Implement a modest model in transistor-transistor logic, similar to the DEC PDP-12
Implement a simple model in diode-transistor logic, like the original DEC PDP-8
Implement a simpler model in later vacuum tubes, like the IBM 700 series
Implement simplest model in early vacuum tubes, like the EDSAC
[...]
(Conlang)=
Choose sounds
Choose phonotactics
[...]
(Animation ‘movie’)=
[...]
(Exploration top-down ’racing game’)=
[...]
(Video dictionary)=
[...]
(Grand strategy game)=
[...]
(Telex system)=
[...]
(Pen&paper tabletop game)=
[...]
(Search engine)=
[...]
(Microlearning system)=
[...]
(Alternate planet)=
[...]
(END)
4 notes · View notes
clojureland · 7 years ago
Text
Digit Splitting
The easiest way I’ve found to split a number into individual digits.
(defn split-digits [number]   (map #(Character/digit % 10) (str number))) 
(split-digits 123456) => (1 2 3 4 5 6)
0 notes