profile
viewpoint
Alex Kizer kizerkizer Seattle, WA kizer.online Software Engineer. Azure, Azure Stack, Hybrid Cloud, C#, TypeScript, JS, C, Front-end, Back-end, DevOps, ...

kizerkizer/node-wasm-example 17

A basic example of running WebAssembly in node.

kizerkizer/metaproperties 13

Associate data with any object without modifying it in any way. Implemented using WeakMaps. Works in browser and node.js.

kizerkizer/anglebrackets 1

Light-weight HTML generation from simple JS objects

kizerkizer/apk-units 0

Functions which concatenate the css unit for which they are named.

kizerkizer/common-symbols 0

Common symbols that can be added on objects as an "interface" that is compatible with aware libraries.

kizerkizer/cssfw1 0

Basic responsive grid

startedhexojs/hexo

started time in 4 hours

startedgraalvm/graalvm-ce-builds

started time in 4 hours

issue commentw3c/csswg-drafts

[css-env-1] - Pushing data from CSS?

If there were a way to push data into JavaScript land, perhaps in the form of an event or signal of some sort, then a script could handle the setting of a custom rule on a set of elements without having to watch the DOM and stylesheets for a custom property that is intended to be "JS enhanced".

Yes, this is planned for a future Houdini spec: letting JS process a custom property to produce a "computed value" or "used value", and/or letting JS register "property listeners" on elements that get called when a property's value changes.

Another use-case could be pushing data when media queries are activated; then JS could perhaps make further responsive enhancements (as responsive design is currently the prime motivator for using media queries).

This can already be done! You can evaluate MQs directly in JS, and register a listener for when they change: https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener

Some other ideas: calc could be supplemented with other functions whose implementation is in JS - however, this would be hidden to the user of the function, preserving the declarative, decorative semantics of CSS. Any function could be defined; e.g., string manipulation functions, numeric-valued functions, such as, say, grabbing the width of another element for use in a value (e.g. height: calc(width(#myDiv) + 2em)).

This is another planned Houdini spec: Houdini Custom Functions. ^_^

Thank you for the informative reply! Had no idea about media query listeners.

kizerkizer

comment created time in 6 hours

pull request commentdenoland/deno

Add radix to parseInt

FYI: Content-Length must be a decimal number. We shouldn't expect its value to be other formats.

https://tools.ietf.org/html/rfc2616#section-14.13

Is there a parser in between? The Tokyo layer? Then it’d be fine.

kizerkizer

comment created time in 21 hours

issue openedvlang/v

Naming variable "char" causes c compiler error

V version: V 0.1.24 0d93eeb OS: macOS

What did you do? char := ...

What did you expect to see? Normal program functionality

What did you see instead? V error: C error. This should never happen. Please create a GitHub issue: https://github.com/vlang/v/issues/new/choose Alexs-iMac:vhll-v $ v -g main.v C compiler=cc /Users/Desktop/projects/vhll-v/main.v:10:2: warning: expression result unused [-Wunused-value] v_exit ; ^~~~~~ /Users/Desktop/projects/vhll-v/main.v:12:7: error: cannot combine with previous 'type-name' declaration specifier byte char = tmp2.str[tmp3]; ^ /Users/Desktop/projects/vhll-v/main.v:12:12: error: expected identifier or '(' byte char = tmp2.str[tmp3]; ^ /Users/Desktop/projects/vhll-v/main.v:14:26: error: use of undeclared identifier 'v_char' /*opt*/printf ("%d\n", v_char ) ; ^ 1 warning and 3 errors generated. V error: C error. This should never happen.

created time in 2 days

startedolado/doT

started time in 4 days

startedprincejwesley/Mancy

started time in 5 days

startedElectronNET/Electron.NET

started time in 6 days

startedNodeRT/NodeRT

started time in 6 days

startedkgabis/ape

started time in 6 days

issue openedw3c/csswg-drafts

[css-env-1] - Pushing data from CSS?

https://drafts.csswg.org/css-env-1/

Currently var allows "reading" custom properties previously set by CSS or indirectly by JavaScript. Thus this provides a one-way communication bridge between JS and CSS; JS can in effect "transfer" data to stylesheet variables, which can then be utilized as values in rules (via var). In this manner features can be "injected" into CSS, such as one common example where a script updates --mouse-x, --mouse-y custom properties while listening to the mousemove event. Any element can then be positioned relative to the current coordinates of the mouse - a handy feature.

However, to my knowledge, there doesn't seem to be an similar way to "transfer" information from CSS to JavaScript. At first, this may seem without merit or nonsensical, given that CSS simply decorates selectable entities (my own terminology). However, after consideration, I started imagining useful and practical scenarios.

For instance, there aren't currently "custom rules", where authors would not only associate a custom property name with a single value, but specify somehow the semantics of applying a custom property against a corresponding custom value syntax. At present, this can be effected to a degree by setting a custom property on a DOM node, or more usefully a DOM subtree's root, and having the descendant elements' rules read from that property in such a way as to act out a rudimentary implementation. This goes hand in hand with the custom elements specification. However, more dynamic custom rules could be implemented with the aid of JS. If there were a way to push data into JavaScript land, perhaps in the form of an event or signal of some sort, then a script could handle the setting of a custom rule on a set of elements without having to watch the DOM and stylesheets for a custom property that is intended to be "JS enhanced".

Another use-case could be pushing data when media queries are activated; then JS could perhaps make further responsive enhancements (as responsive design is currently the prime motivator for using media queries).

Some other ideas: calc could be supplemented with other functions whose implementation is in JS - however, this would be hidden to the user of the function, preserving the declarative, decorative semantics of CSS. Any function could be defined; e.g., string manipulation functions, numeric-valued functions, such as, say, grabbing the width of another element for use in a value (e.g. height: calc(width(#myDiv) + 2em)).

I've been general about how CSS would communicate with JS, but such "custom functions" with JS implementations seem like one natural option, as pairing them with custom properties would allow expressive "custom rules".

Regardless, if there were simply a way to push information to JavaScript, perhaps by just adding one CSS function or property, or something else, then, with the existing custom properties feature-set, an ergonomic collaboration between the two fundamental web techs could be established and developers could make use of more elegant constructions, aside from watching for elements with a certain class or custom property in their computed styles, and then enhancing them from there.

Just a thought - please let me know if I've overlooked an existing proposal, API, feature, etc. Also, I'd appreciate criticism and feedback in general of the idea. Please also ask for clarification as I wrote this in one go.

created time in 6 days

startedelectron-userland/electron-builder

started time in 6 days

pull request commentdenoland/deno

Add radix to parseInt

Looks like the basic case is failing? I’ll have to look into this more. It’s failing on “1776”.

kizerkizer

comment created time in 6 days

startedMauriceConrad/Photon

started time in 6 days

startedsindresorhus/awesome-electron

started time in 7 days

startedkapetan/win-mouse

started time in 7 days

startedChartIQ/finsemble-seed

started time in 7 days

startedChartIQ/finsemble-seed

started time in 7 days

startedsentialx/multrin

started time in 7 days

startedFreak613/domc

started time in 7 days

startedkentcdodds/babel-plugin-preval

started time in 7 days

startedpatrick-steele-idem/morphdom

started time in 7 days

startedFreak613/stage0

started time in 7 days

startedjsdom/jsdom

started time in 7 days

startedredom/redom

started time in 7 days

startedTimPietrusky/background-clip-text-polyfill

started time in 7 days

startedgraalvm/graaljs

started time in 7 days

startedkkos/oniguruma

started time in 8 days

startedtj/n

started time in 8 days

startedyewstack/yew

started time in 8 days

startedharfbuzz/harfbuzz

started time in 9 days

startedfrancesco-strazzullo/js-proxies-ui-framework

started time in 9 days

startedchoojs/choo

started time in 9 days

startedapple/swift-nio

started time in 10 days

issue closeddenoland/deno

Proposal: Subcommand to "cat" a remote file

Often I want to see the source of a URL import - unless I'm mistaken, there's no easy way aside from "curl"ing the URL to see the source? If so, I think a deno cat <URL> or something similar would be very handy. Maybe a way to navigate the cached dependency tree?

closed time in 10 days

kizerkizer

issue commentdenoland/deno

Proposal: Subcommand to "cat" a remote file

Why would something like this not be sufficient:

curl https://deno.land/x/foo/bar.ts

I guess why do you need Deno in the way?

For some reason I thought I'd need some flags. Yeah, you're right.

kizerkizer

comment created time in 10 days

startedmicrosoft/vscode

started time in 11 days

startedGoogleChromeLabs/squoosh

started time in 11 days

startedpatr0nus/Pym

started time in 11 days

startedlitehtml/litehtml

started time in 11 days

startedjscherer92/Quark

started time in 11 days

startedpojala/electrino

started time in 11 days

startedpatr0nus/DeskGap

started time in 11 days

issue openeddenoland/deno

Proposal: Subcommand to "cat" a remote file

Often I want to see the source of a URL import - unless I'm mistaken, there's no easy way aside from "curl"ing the URL to see the source? If so, I think a deno cat <URL> or something similar would be very handy. Maybe a way to navigate the cached dependency tree?

created time in 11 days

push eventkizerkizer/deno

Alex Kizer

commit sha 398c100466c31bd8303a38b2872c958073fec18d

Fix return type

view details

push time in 11 days

startedtwigphp/Twig

started time in 12 days

push eventkizerkizer/deno

Alex Kizer

commit sha 615f7393c782396167c0a93b0e3451b6e5f5774a

Remove async keyword

view details

push time in 12 days

push eventkizerkizer/deno

Alex Kizer

commit sha 586e2753a6e6fc547451cb9f68806d783d654cac

Add radix to parseInt. Add test.

view details

push time in 12 days

push eventkizerkizer/deno

kizerkizer

commit sha 0e8fb35161a02fc4de8ba55779bb954b50dce678

Add test

view details

push time in 12 days

pull request commentdenoland/deno

Add radix to parseInt

@kizerkizer I'm not sure I understand - are you saying that if a header "Content-Length: 0xabc" was sent that parseInt("0xabc") would be successful? If so, I guess we should also add a test for this.

I believe that's the behavior. I checked on MDN here.

kizerkizer

comment created time in 12 days

starteddenoland/rusty_v8

started time in 12 days

startedmanyuanrong/deno-plugin-prepare

started time in 12 days

startedeliassjogreen/deno_webview

started time in 12 days

startedzserge/webview

started time in 12 days

PR opened denoland/deno

Add radix to parseInt

Otherwise 0x... hexadecimal content-lengths could be parsed

<!-- Before submitting a PR, please read https://deno.land/std/manual.md#contributing -->

+1 -1

0 comment

1 changed file

pr created time in 12 days

push eventkizerkizer/deno

Alex Kizer

commit sha 2d2769894556e0e976b23c80088d9657fed36433

Add radix to parseInt Otherwise 0x... hexadecimal content-lengths could be parsed

view details

Alex Kizer

commit sha e6a25a6a1a438b3f07458b57812db21c9d616546

Merge pull request #1 from kizerkizer/kizerkizer-patch-1 Add radix to parseInt

view details

push time in 12 days

PR merged kizerkizer/deno

Add radix to parseInt

Otherwise 0x... hexadecimal content-lengths could be parsed

<!-- Before submitting a PR, please read https://deno.land/std/manual.md#contributing -->

+1 -1

0 comment

1 changed file

kizerkizer

pr closed time in 12 days

PR opened kizerkizer/deno

Add radix to parseInt

Otherwise 0x... hexadecimal content-lengths could be parsed

<!-- Before submitting a PR, please read https://deno.land/std/manual.md#contributing -->

+1 -1

0 comment

1 changed file

pr created time in 12 days

create barnchkizerkizer/deno

branch : kizerkizer-patch-1

created branch time in 12 days

fork kizerkizer/deno

A secure JavaScript and TypeScript runtime

https://deno.land/

fork in 12 days

startedyysun/apprun

started time in 14 days

startedPolymer/lit-html

started time in 14 days

startedPolymer/lit-element

started time in 14 days

startedhybridsjs/hybrids

started time in 14 days

startedPolymer/lit-html

started time in 14 days

startedrollup/plugins

started time in 14 days

startedterser/terser

started time in 14 days

startedAutomattic/wp-calypso

started time in 14 days

startedasvetliakov/vscode-neovim

started time in 15 days

startedrhysd/neovim-component

started time in 15 days

startedneovim/neovim

started time in 15 days

startedrubygems/bundler

started time in 15 days

startedneoclide/coc.nvim

started time in 15 days

startedsuperpowers/superpowers-app

started time in 15 days

startedtc39/proposal-observable

started time in 15 days

startedtc39/proposal-pipeline-operator

started time in 15 days

startedovity/octotree

started time in 15 days

startedoncletom/crx

started time in 15 days

startedeligrey/FileSaver.js

started time in 16 days

startedmdn/web-components-examples

started time in 16 days

starteddotnet-architecture/eShopOnContainers

started time in 17 days

starteddodyg/practical-aspnetcore

started time in 17 days

starteddotnet/wpf

started time in 17 days

startedc-smile/sciter-sdk

started time in 17 days

startedcgjs/cgjs

started time in 17 days

startedfreeCodeCamp/devdocs

started time in 17 days

startedparro-it/libui-node

started time in 17 days

push eventkizerkizer/vhll

Alexander Kizer

commit sha 743f66abd67543b9eeee263fd697e48af7ba0b81

languages

view details

push time in 17 days

push eventkizerkizer/vhll

Alexander Kizer

commit sha d2b3e8a928a65d8d7387623224e9aee5974bfe65

My first little program

view details

Alexander Kizer

commit sha bf4fcb83f9c99a3535f47dd0063cab2e5807ec88

some stuff

view details

push time in 17 days

startedkusti8/proton-native

started time in 17 days

create barnchkizerkizer/vhll

branch : master

created branch time in 17 days

created repositorykizerkizer/vhll

Very high-level language

created time in 17 days

startedparrot/parrot

started time in 18 days

startedjquery/esprima

started time in 18 days

startedgrrr-amsterdam/grrr-utils

started time in 18 days

startednotable/notable

started time in 18 days

startedsveltejs/svelte

started time in 18 days

issue openedsveltejs/svelte

Should this be !== ?

https://github.com/sveltejs/svelte/blob/e50ad1dcb6d7e9e5ff6d27f566f459369c51beba/src/runtime/internal/loop.ts#L35

created time in 18 days

startedmathiasbynens/esrever

started time in 18 days

more