Tagged articles
17 articles
Page 1 of 1
Ray's Galactic Tech
Ray's Galactic Tech
Jan 22, 2026 · Big Data

Export 1 Billion Elasticsearch Docs in 3 Hours Using PIT + Slice

This guide explains how to reliably export over a billion Elasticsearch documents within a few hours by using Point‑In‑Time (PIT) snapshots combined with parallel Slice processing, covering diagnostics, performance modeling, consistency levels, failure recovery, and resource isolation.

Big DataData ExportElasticsearch
0 likes · 7 min read
Export 1 Billion Elasticsearch Docs in 3 Hours Using PIT + Slice
JavaScript
JavaScript
Jun 6, 2025 · Frontend Development

Why slice() Beats substr() and substring() in Modern JavaScript

This article explains the three JavaScript string extraction methods—substr(), substring() and slice()—highlighting why slice() is now preferred, detailing deprecation reasons for substr(), comparing behavior, parameter handling, and consistency, and summarizing its advantages over the other methods.

JavaScriptSliceString Methods
0 likes · 4 min read
Why slice() Beats substr() and substring() in Modern JavaScript
Raymond Ops
Raymond Ops
Mar 19, 2025 · Fundamentals

Unlocking Go’s Empty Interface: How Any Type Becomes a Value

This article explains Go’s empty interface, showing how it can hold values of any type, how to declare and use it in functions and data structures, and why copying between concrete slices and empty‑interface slices requires element‑wise assignment due to its two‑word memory layout.

GoInterfaceSlice
0 likes · 5 min read
Unlocking Go’s Empty Interface: How Any Type Becomes a Value
Liangxu Linux
Liangxu Linux
Aug 4, 2024 · Backend Development

Mastering Go’s Empty Interface: Store Any Type and Copy Data Safely

This guide explains Go's empty interface, how any value can be stored in it, demonstrates declaring variables and functions with interface{}, shows practical slice examples, discusses memory layout, and provides the correct way to copy data into an empty‑interface slice.

GolangInterfaceSlice
0 likes · 5 min read
Mastering Go’s Empty Interface: Store Any Type and Copy Data Safely
MaGe Linux Operations
MaGe Linux Operations
Jun 1, 2024 · Fundamentals

Mastering Go Slices: Creation, Manipulation, and Performance Tips

Go slices are dynamic, flexible data structures built on arrays, offering automatic growth, efficient memory use, and powerful operations such as creation via make or literals, slicing, appending, copying, iteration, and passing to functions, with detailed examples and visualizations illustrating their internal mechanics.

GoGolangMemory
0 likes · 17 min read
Mastering Go Slices: Creation, Manipulation, and Performance Tips
Laravel Tech Community
Laravel Tech Community
Dec 12, 2022 · Fundamentals

Go 1.20 Release Candidate Highlights: New Slice‑to‑Array Conversion, Unsafe Package Functions, and Comparable Types

Go 1.20 RC1 introduces experimental RISC‑V/FreeBSD support, expands slice‑to‑array conversion, adds three new unsafe package functions, updates comparable type constraints, and changes struct value comparison order, while being the final version compatible with macOS 10.13/10.14, with download details provided.

ComparableProgramming LanguageRISC-V
0 likes · 4 min read
Go 1.20 Release Candidate Highlights: New Slice‑to‑Array Conversion, Unsafe Package Functions, and Comparable Types
Tencent Cloud Developer
Tencent Cloud Developer
Jun 8, 2022 · Backend Development

Understanding Go Map and Slice Concurrency Safety and Parameter Passing

The article explains that Go maps and slices are not safe for concurrent reads or writes, describes how the runtime detects map violations, and recommends using sync.Mutex, sync.RWMutex, or sync.Map for maps and external synchronization for slices, while also clarifying that passing these reference types to functions shares underlying data unless explicitly copied.

GoMAPParameter Passing
0 likes · 12 min read
Understanding Go Map and Slice Concurrency Safety and Parameter Passing
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Dec 6, 2019 · Fundamentals

Understanding Go Slice Internals: Structure, Initialization, Append, Slicing, Copy, and Parameter Passing

This article explains the internal representation of Go slices, how they are created and initialized, the mechanics of append and capacity growth, slicing behavior, deep‑copy using the copy function, and whether slices are passed by value or reference, all illustrated with source code and assembly excerpts.

GoGolangMemory
0 likes · 24 min read
Understanding Go Slice Internals: Structure, Initialization, Append, Slicing, Copy, and Parameter Passing
MaGe Linux Operations
MaGe Linux Operations
Nov 28, 2019 · Fundamentals

Why Python’s [:] List Copy Is Misleading and Better Alternatives

Python’s slice syntax new = old[:] appears to copy a list, but it actually creates a reference to the same object, leading to subtle bugs; this article explains Python’s object model, demonstrates the pitfalls, and presents clearer alternatives such as list(), copy.copy(), and deepcopy.

Slicebest-practicesdeep copy
0 likes · 6 min read
Why Python’s [:] List Copy Is Misleading and Better Alternatives
Didi Tech
Didi Tech
Apr 18, 2019 · Backend Development

Deep Dive into Go Slices: Creation, Internals, and Append Mechanics

The article explains Go slices as three‑field descriptors pointing to an underlying array, details creation methods, shows the low‑level runtime representation and assembly for make, describes how append triggers growslice with capacity‑doubling or ~25 % growth and alignment, and clarifies sharing, nil slices, and passing semantics.

AssemblyGoMemory Management
0 likes · 28 min read
Deep Dive into Go Slices: Creation, Internals, and Append Mechanics