techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#array

0 posts0 participants0 posts today
Continued thread

@anosidium I understand that you can achieve the same effect by using insert(_:at: 0) or insert(contentsOf:at: 0), but if that’s the case, why provide the append methods at all? After all, append is just syntactic sugar for inserting at the end.

So why not have dedicated prepend methods for consistency and clarity?

Preprint of the longest paper I ever contributed to: arxiv.org/abs/2505.08906 - it is a qualitative and quantitative comparison of various #functional #array languages, with a significant #gpgpu element.

arXiv logo
arXiv.orgComparing Parallel Functional Array Languages: Programming and PerformanceParallel functional array languages are an emerging class of programming languages that promise to combine low-effort parallel programming with good performance and performance portability. We systematically compare the designs and implementations of five different functional array languages: Accelerate, APL, DaCe, Futhark, and SaC. We demonstrate the expressiveness of functional array programming by means of four challenging benchmarks, namely N-body simulation, MultiGrid, Quickhull, and Flash Attention. These benchmarks represent a range of application domains and parallel computational models. We argue that the functional array code is much shorter and more comprehensible than the hand-optimized baseline implementations because it omits architecture-specific aspects. Instead, the language implementations generate both multicore and GPU executables from a single source code base. Hence, we further argue that functional array code could more easily be ported to, and optimized for, new parallel architectures than conventional implementations of numerical kernels. We demonstrate this potential by reporting the performance of the five parallel functional array languages on a total of 39 instances of the four benchmarks on both a 32-core AMD EPYC 7313 multicore system and on an NVIDIA A30 GPU. We explore in-depth why each language performs well or not so well on each benchmark and architecture. We argue that the results demonstrate that mature functional array languages have the potential to deliver performance competitive with the best available conventional techniques.

alojapan.com/1270294/japans-be Japan’s Best Ecotourism Destinations We Can’t Wait To Visit #array #asia #capital #destinations #EcoFriendly #Ecotourism #Japan #JapanTrips #Japans #natural #offers #trips #visit #Wait #wonders Another 500km (311mi) south, this sun-kissed chain of coral-fringed islands is a subtropical paradise in the Pacific. And what makes this untamed, far-flung part of Japan one of the country’s must-visit ecotourism destinations is precisely how un-Japan…

Replied in thread

@bvibber oh boy now you're talking my language. ;)

We should chat, I've got some ideas on how to better transfer structured data as "wikitext" args. And the Wikifunctions folks have some useful interactions there as well.

Short story is that arguments and return values for parser functions are PFragments, which can be rendered as wikitext/HTML but also passed directly as a structured value.

Eg {{#function:foo|{{#function:bar}}}} - the value returned by bar could be rendered as a wikitext string, but could also be addressed directly as a zobject by #function:foo avoiding all the games we usually have to play to armor structured data against wikitext transforms.

Generalizing a bit: {{foo:{{#array:foo|bar|baz}}...}} is a way to pass a structured array as an argument, with {{#array}} being a constructor function for that value.

Etc.

#CSS #webdev #php #array

why do i keep looking at this, thinking
_man, that's from like 2007 or something_
```
$materialIconsMap = [
'star' => '\e87d',
'home' => '\e88a',
'search' => '\e8b6',
'settings' => '\e8b8',
'menu' => '\e5d2',
'account' => '\e853',
'camera' => '\e8f7',
'info' => '\e88f',
'logout' => '\e5f5',
'lock' => '\e897'
];```

but it's simple and to the point, and makes sense.

But. Isn't it possible to do this w/ plain CSS 3 nowadays?

Array là gì? 🤔
Array (hay còn gọi là mảng) là một cấu trúc dữ liệu cơ bản trong lập trình, cho phép lưu trữ nhiều phần tử cùng kiểu trong một biến duy nhất. Thay vì khai báo từng biến riêng lẻ, bạn có thể gom nhóm dữ liệu vào một array để quản lý và thao tác dễ dàng hơn. Đây là nền tảng để học các cấu trúc dữ liệu phức tạp hơn sau này.

📚 Đọc chi tiết + ví dụ minh họa dễ hiểu tại:
👉 interdata.vn/blog/array-la-gi/

#Array#LapTrinh#IT

World Map: Array decisions

I’m going back and forth at the moment on the subject of the world array. In The Endless Rooms, there are endless near-identical rooms. For what I hope are obvious reasons, I plan to go with an array of 100 by 100 rooms, which should feel like an unlimited number without actually being unlimited.

This means that there will be 10,000 rooms to explore. If I create an array to map all the rooms, I probably don’t want to load into memory the objects for every room, entity, creature, puzzle, script and so forth. I may need to map where to find those things and include in the active array, completion, changes, narrative progress, and the like.

The question I am currently playing with is how much I need to keep in memory and how much I can defer to files.

This is a key set of choices that I feel I may need to make early, as changing later could be a lot of needless work. I’ve been using ChatGPT as a coding buddy to talk through ideas (I’ll write my own code, thank you chat), which has helped me get some ideas organised in my brain. Not because ChatGPT is particularly helpful but because I have had to codify and explain what I’m trying to figure out.

Any thoughts? I’d love to hear them.

Also on:

#10000Rooms #array #map #planning #technicalLimits #DevLog

DB2 JSON Array Extraction: Solving JSON_TABLE Challenges in DB2 v11.5
Master DB2 JSON Array Extraction using efficient techniques like recursive common table expressions (RCTEs)! Learn to handle complex JSON structures & avoid common pitfalls. #DB2 #JSON #Array #Extraction #SQL #RCTE
tech-champion.com/database/db2
Learn how to efficiently extract array data from JSON stored in DB2 v11.5 using JSON_TABLE and workar...