How to Create Arrays From Ranges

Array.from with map. No loop. Generate 1-10 instantly.

#javascript #array.from #range #howto

https://www.youtube.com/watch?v=KGSDipEEofY

How to Create Arrays From Ranges #howto

YouTube
Juno

IDE for J programming language

I also added first?, more? and last? as functions defined inside each? for the purposes of being able to format playground output more easily, but also so that "print in a loop" can work more nicely w/o having to use Array's join.

#array: module/extend[
Playground/dump: fn[
Playground .[
you each[
first?[ "/#[ " dump/string ]
dump more?[ ", " dump/string ]
last?[ " ]" dump/string ]
]
]
]
]

^ this is the code that's motivated this batch of changes. Takes me from an awkward "dump array like an object (which honestly kinda sucks)" to "Dump array as it's own literal", which I like quite a bit.

And I like more? as a way to do join-like things.

#StackTalk #yakshaving

How to Stop Array includes From Failing on NaN

indexOf misses NaN but includes finds it.

#javascript #nan #array #bug #howto #search

https://www.youtube.com/watch?v=4T83RCDQs0o

How to Stop Array includes From Failing on NaN #search

YouTube

Долгожданный оператор _Countof

Одно из недооценённых событий уходящего года деревянной змеи - в проекте стандарта языка С появился оператор числа элементов. Как заметил один мудрый товарищ, Алексей Годин, даже полвека ещё не прошло, а наконец, дождались.

https://habr.com/ru/articles/1000228/

#C2Y #C23 #массив #array #c++26

Долгожданный оператор _Countof

"Пять грустных солдат, пять веселых солдат и ефрейтор..." Окуджава Б.Ш., 1961 Содержание Оператор _Countof Этимология названия Реализация Терминология Жизнь до _Countof Идиома количества элементов...

Хабр

Los arrays en Go parecen simples, pero esconden decisiones de diseño importantes. En este artículo te explico cómo se usan y qué debes tener en cuenta al trabajar con ellos.

https://www.lateclaescape.com/post/2026/golang-arrays/

#lateclaesc #Golang #array

Noticed array, the absolute #panoramic #array of reports that I put out?🔦 It's not a big deal as long as you are not deer in the headlights. So back to code for code. In your thinking Let's do example that actually gets to three layers. That's a fractal and then you'll really get that it's worth it.
Coretta Scott King’s Search Into Truth Of MLK Death In The Works From Byron Allen & Ava DuVernay

Coretta Scott King never believed the official version of her husband's assassination, & now Ava DuVernay & Byron Allen want to bring her truth to light

Deadline

Array.fill() Shares Same Reference?!

This is a TRAP! Array.fill() with an object puts the SAME object in every slot. Change one, change ALL! Every element points to the same memory location. This silent mutation will destroy your data!

#javascript #javascripttricks #array.fill #objectreference #mutationbugs #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #referencetypes #advancedjavascript

https://www.youtube.com/watch?v=MaOk-qGi9xw

Array.fill Shares Same Reference?! #codingchallenge

YouTube

The #Lazuli #Space #Observatory is a project of #Schmidt #Sciences,
a philanthropic organization built by investor Wendy Schmidt and former Google CEO Eric Schmidt.

“This is the first full-scale observatory that is privately funded in space,” says Stuart Feldman, an astronomer, computer scientist and president of Schmidt Sciences,
who spoke to Scientific American before the announcement.

“For 20 years, Eric and I have pursued philanthropy to seek new frontiers,”
Wendy Schmidt said in a statement.

“With the #Schmidt #Observatory #System
[which includes Lazuli],
we’re enabling multiple approaches to understanding the vast universe
where we find ourselves stewards of a living planet.”

As envisioned, the telescope will boast a three-meter mirror
—larger than that of NASA’s iconic Hubble Space Telescope.

Its three instruments
—a planet-finding coronagraph,
a high-resolution wide-field camera
and a light-splitting spectrograph
—will study the atmospheres of distant worlds, dissect the light from exploding stars and tackle mysteries such as the nature of dark energy, the enigmatic force that drives the universe’s accelerating expansion.

Lazuli will be agile as well;
it will be able to rapidly swivel to stare at things that go bump in the cosmic night.

With a price tag rumored to be in the hundreds of millions of dollars, the telescope could launch before the decade is out.

And if it is successful, the feat could signal a new way to achieve big things in the space sciences.

“There’s a lot of good potential here,
and it’s encouraging to see these new pathways opening for doing astrophysics,”
says astronomer Heidi Hammel,
vice president for science at the Association of Universities for Research in Astronomy.

Lazuli is just one of several large projects comprising the Schmidt Observatory System

—initiatives that Feldman characterizes as
“risky but exciting.”

The others are all ground-based and share a common design element in that they’re modular,
using hundreds of small and relatively low-cost components to create much larger and more capable arrays.

One, the
#Deep #Synoptic #Array, will study the sky at radio wavelengths,
while its counterpart,
the #Argus #Array, will observe in visible light.

A third smaller-but-scalable
#Large #Fiber #Array #Spectroscopic #Telescope
will gather spectra of cosmic targets such as exoplanets and supernovae.

The goal, Feldman says, is for each of these projects to be doing science by 2029.
https://www.schmidtsciences.org/focus-area-astrophysics/

Focus Area – Astrophysics - Schmidt Sciences

Schmidt Sciences